Ejemplo n.º 1
0
 public async Task <JsonResult> UpdateCountry([Required] CountryViewModel model)
 {
     if (!ModelState.IsValid)
     {
         return(JsonModelStateErrors());
     }
     return(await JsonAsync(_addressService.UpdateCountryAsync(model), SerializerSettings));
 }