public IHttpActionResult EndTask(int id) { try { _TaskBO = new TaskBO(); _TaskBO.EndTask(id, "EndTask"); return(Ok()); } catch (Exception) { return(Ok("Error")); } }