Пример #1
0
        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);
        }
Пример #2
0
 void Actualizar(Sg07_Rol Rol)
 {
     _RolRepository.Update <Sg07_Rol>(Rol);
     _RolRepository.Save();
 }
Пример #3
0
 void Crear(Sg07_Rol Rol)
 {
     _RolRepository.Create <Sg07_Rol>(Rol);
     _RolRepository.Save();
 }