Ejemplo n.º 1
0
        public IHttpActionResult GetByFilter(EntityPractice entity)
        {
            var repository = new RepositoryPractice();
            var response   = repository.GetAllPractices(entity.SpecialityTypeId, entity.KeyWord, CurrentBusinessId, CurrentUserId, CurrentUser.Roles.Contains("BusinessAdmin"));

            return(Ok <DataResponse <EntityList <EntitySelectItem> > >(response));
        }
Ejemplo n.º 2
0
        public IHttpActionResult GetByFilter(EntityPractice entity)
        {
            var repository = new RepositoryPractice();

            string[] privileges = { "RDPRCTALL" };
            var      response   = repository.GetAllPractices(entity.SpecialityTypeId, entity.KeyWord, CurrentBusinessId, CurrentUserId, IsBuzAdmin || HasRight(privileges));

            return(Ok <DataResponse <EntityList <EntitySelectItem> > >(response));
        }