public GetTenantsResponse GetList() { //RequestInitialization(Request); GetTenantsResponse response = _tenantService.GetList(); return(response); }
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); }