public IActionResult EditGlobal([FromBody] QuestionEdit data) { try { QuestionIndexWithScope result = questionService.EditGlobal(data); return(Ok(result)); } catch (Exception e) { return(BadRequest(e.Message)); } }
public IActionResult EditPersonal([FromBody] QuestionEdit data) { try { var userData = jwtService.ParseData(this.User); QuestionIndexWithScope result = questionService.EditPersonal(data, userData.UserId); return(Ok(result)); } catch (Exception e) { return(BadRequest(e.Message)); } }