oop_II-6/Client/Client/ServiceClasses/Result.cs

28 lines
614 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Client
{
public class Result
{
public string ResultName { get; set; }
public Result(string resultName)
{
ResultName = resultName;
}
public int CreateResult()
{
EHEC_Service.Result myResult = new EHEC_Service.Result
{
Name = ResultName
};
Global.GlobalInstance.Service.WriteResult(myResult);
return myResult.ResultId;
}
}
}