Пример #1
0
        public JsonResult UpdatePollAnswerData(XEditableModel model)
        {
            if (ModelState.IsValid)
            {
                return(Json(_pollAnswerService.UpdatePollAnswerData(model)));
            }

            return(Json(new ResponseModel
            {
                Success = false,
                Message = ModelState.BuildValidationMessages()
            }));
        }