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 SetAccountStatuses(StatusManagementModel model) { var repository = new RepositoryPractice(); var response = repository.SetApiActiveFlagStatus(model.Id, model.IsLead, model.IsActive, model.Flag); response.Status = DataResponseStatus.OK; return(Ok <DataResponse>(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)); }