예제 #1
0
        public void Update(Task.Core.Task Task)
        {
            //foreach (var comment in Task.Comments)
            //{
            //    _commentRepository.Update(comment);
            //}

            _taskRepository.Update(Task);
        }
 public bool UpdateTask(TaskModel taskEntity)
 {
     try
     {
         using (var repository = new DAL.TaskRepository())
         {
             return(repository.Update(taskEntity));
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public bool UpdateTask(int taskId)
 {
     try
     {
         using (var repository = new DAL.TaskRepository())
         {
             return(repository.Update(taskId));
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }