Beispiel #1
0
 public bool InsertTask(UserTaskModel taskEntity)
 {
     try
     {
         using (var repository = new DAL.TaskManagerRepository())
         {
             return(repository.Insert(taskEntity));
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #2
0
 public UserTaskModel GetTaskDetailsById(int id)
 {
     try
     {
         using (var repository = new DAL.TaskManagerRepository())
         {
             return(repository.GetTaskDetailsById(id));
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }