public IHttpActionResult EndTask(int taskId, string userId) { _tasksService.EndTask(taskId, userId); return(Ok()); }
public IHttpActionResult EndTask([FromBody] int taskId) { int result = _taskManagerBL.EndTask(taskId); return(Ok()); }