Ejemplo n.º 1
0
 public async Task <JsonResult> AddCityToCountry([Required] AddCityViewModel model)
 => !ModelState.IsValid ? Json(new ResultModel().AttachModelState(ModelState)) : Json(await _locationService.AddCityToCountryAsync(model));