Example #1
0
 public IHttpActionResult AddTask([FromBody] TaskModel task)
 {
     try
     {
         TaskBL blTask = new TaskBL
         {
             Task       = task.Task,
             ParentTask = task.ParentTask,
             Priority   = task.Priority,
             StartDate  = task.StartDate,
             EndDate    = task.EndDate
         };
         int result = _taskManagerBL.AddTask(blTask);
         return(Ok());
     }
     catch (Exception)
     {
         return(InternalServerError());
     }
 }
 public IHttpActionResult AddTask(TaskModel task)
 {
     _manager.AddTask(task);
     return(Ok("Task added Successfully"));
 }
Example #3
0
 public IHttpActionResult Create([FromBody] TaskEntity taskModel)
 {
     _tasksService.AddTask(taskModel);
     return(Ok());
 }
 public void Add_Task_Elapsed_Time()
 {
     _taskService.AddTask(_newTask);
 }