IEnumerable <DtoRol> MapearEntidadADto(Sg07_Rol Rol) { DtoRol dto = new DtoRol(); dto.Id = Rol.Id;; dto.NombreRol = Rol.NombreRol; dto.UsuarioCreacion = Rol.UsuarioCreacion; dto.UsuarioModificacion = Rol.UsuarioModificacion; dto.Estado = Rol.Estado; List <DtoRol> lista = new List <DtoRol>(); lista.Add(dto); return(lista); }
void Actualizar(Sg07_Rol Rol) { _RolRepository.Update <Sg07_Rol>(Rol); _RolRepository.Save(); }
void Crear(Sg07_Rol Rol) { _RolRepository.Create <Sg07_Rol>(Rol); _RolRepository.Save(); }