public IHttpActionResult ChangeStatus(int id, int statusId) { if (!ModelState.IsValid) { return(this.BadRequest(ModelState)); } var userId = RequestContext.Principal.Identity.GetUserId(); var availableStatuses = issuesService.ChangeStatus(userId, id, statusId); return(Ok(availableStatuses)); }