public async Task <ActionResult> Create(ModeloServicesModel ModeloServicesModel) { ServiceResult result; if (!ModelState.IsValid) { return(View()); } try { result = await _ModeloService.SaveModelo(new ModeloServicesModel() { Nombre = ModeloServicesModel.Nombre }); if (!result.success) { ViewData["Message"] = result.message; return(View()); } return(RedirectToAction(nameof(Index))); } catch { return(View()); } }