public async Task <ActionResult <Question> > Edit(int id, [FromBody] Question editQuestion) { try { Profile userInfo = await HttpContext.GetUserInfoAsync <Profile>(); editQuestion.Id = id; editQuestion.Creator = userInfo; return(Ok(_qs.Edit(editQuestion, userInfo.Id))); } catch (Exception e) { return(BadRequest(e.Message)); } }