コード例 #1
0
 public Guid ExecuteAdd(Controller.DtoEntity.Objective objective)
 {
     try {
         if (string.IsNullOrEmpty(objective.Name))
         {
             throw new Exception("Add Objective, Name shouldn't be empty");
         }
         Data.DataEntity.Objective objectiveResult = Singleton.ObjectiveAdd.Add(CommonSingleton.ObjectiveCommon.ToDataEntity(objective));
         return(objectiveResult.Id);
     }
     catch (Exception) {
         throw;
     }
 }
コード例 #2
0
 public Data.DataEntity.Objective Update(Data.DataEntity.Objective objective)
 {
     throw new NotImplementedException();
 }