コード例 #1
0
        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));
        }