public ActionResult CrearDepartamento(Departamento model) { _departamentoRepository.Save(model); return(RedirectToAction("ListarDepartamentos")); }
public async Task Insert(DepartamentoDTO entityDTO) { var entity = Builders.GenericBuilder.builderDTOEntity <TDepartamento, DepartamentoDTO>(entityDTO); await repository.Save(entity); }
public TbPrDepartamento Save(TbPrDepartamento domain) { return(reposistory.Save(domain)); }