public async Task <JsonResult> Delete(int id) { var result = await quizManager.DeleteQuiz(Token.UserId, id); return(result ? ControllerHelper.CreateResponse(result) : ControllerHelper.CreateErrorResponse(HttpStatusCode.Unauthorized, "Unauthorized")); }