예제 #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));
        }
예제 #2
0
        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));
        }
예제 #3
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));
        }