public ActionResult Create(TModel model) { if (ModelState.IsValid) { IService.Create(model); } return Json(new BaseApiModel() { success = ModelState.IsValid, message = ModelState[""]?.Errors[0].ErrorMessage }); }