public IHttpActionResult TogglePriority(int id) { var repository = new RepositoryTask(); var response = repository.TogglePriority(id, CurrentUserId); return(Ok <DataResponse>(response)); }
public IHttpActionResult TogglePriority(int id) { var repository = new RepositoryTask(); var response = repository.TogglePriority(id, CurrentUserId); response.Message = "success"; response.Status = DataResponseStatus.OK; return(Ok <DataResponse>(response)); }