public TbPrDepartamento ViewModelToDomainEditar(DepartamentoViewModel viewModel) { var domain = service.GetDepartamentoById(viewModel.Id); domain.Descripcion = viewModel.Descripcion; domain.Fecha = DateTime.Now; return(domain); }
public IActionResult Edit(int id) { Rule depto = departamentoService.GetDepartamentoById(id); return(View(depto)); }
public IActionResult _EditarDepartamento(int id) { return(PartialView("_CrearEditarDepartamento", map.DomainToVIewModel(service.GetDepartamentoById(id)))); }