示例#1
0
        public async Task <IEnumerable <Rol> > ObtenerListaRol()
        {
            try
            {
                var lista = await RepositoryRol.GetComboRol();

                return(lista);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        public ROL Save(ROL rol)
        {
            IRepositoryRol _repository = new RepositoryRol();

            return(_repository.Save(rol));
        }
        public IEnumerable <ROL> GetRol()
        {
            IRepositoryRol _repository = new RepositoryRol();

            return(_repository.GetRol());
        }
        public ROL GetRolByID(int id)
        {
            IRepositoryRol _repository = new RepositoryRol();

            return(_repository.GetRolByID(id));
        }
示例#5
0
        public IEnumerable <Rol> GetRol()
        {
            IRepositoryRol repository = new RepositoryRol();

            return(repository.GetRol());
        }