예제 #1
0
        public GetTenantsResponse GetList()
        {
            //RequestInitialization(Request);
            GetTenantsResponse response = _tenantService.GetList();

            return(response);
        }
예제 #2
0
        public GetTenantsResponse GetList()
        {
            GetTenantsResponse response = new GetTenantsResponse();

            List <Tenant> tenantList = new List <Tenant>();

            tenantList = _uof.TenantRepository.GetAll(r => r.IsActive);

            if (tenantList == null)
            {
                response.IsSucceed  = false;
                response.ResultCode = (int)HttpStatusCode.NotFound;
                response.Message    = "Tenantlar bulunamadı.";

                return(response);
            }

            response.TenantList = _mapper.Map <List <Tenant>, List <TenantViewModel> >(tenantList);

            return(response);
        }