public IHttpActionResult DeleteTaskItem(long id) { var currentUserId = GetCurrentUserId(); var nullCheck = _bl.GetTaskItem(currentUserId, id); if (nullCheck == null) { return(NotFound()); } _bl.DeleteTaskItem(currentUserId, id); return(Ok()); }