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)); }
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)); }