Example #1
0
        public IHttpActionResult UpdateTask([FromBody] TaskModel task)
        {
            try
            {
                TaskBL blTask = new TaskBL
                {
                    TaskID     = task.TaskID,
                    ParentTask = task.ParentTask,
                    Priority   = task.Priority,
                    StartDate  = task.StartDate,
                    EndDate    = task.EndDate
                };

                int result = _taskManagerBL.UpdateTask(blTask);
                return(Ok());
            }
            catch (Exception)
            {
                return(InternalServerError());
            }
        }
 public IHttpActionResult UpdateTask(TaskModel task)
 {
     _manager.UpdateTask(task);
     return(Ok("Task updated Successfully"));
 }
Example #3
0
 public IHttpActionResult Update([FromBody] TaskEntity taskModel)
 {
     _tasksService.UpdateTask(taskModel);
     return(Ok());
 }
 public void Update_Task_Elapsed_Time()
 {
     _taskService.UpdateTask(_taskToBeUpdated);
 }