Пример #1
0
 public void AddTenant(ApiTenantResponseModel item)
 {
     if (!this.Tenants.Any(x => x.Id == item.Id))
     {
         this.Tenants.Add(item);
     }
 }
Пример #2
0
        public virtual ApiTenantRequestModel MapResponseToRequest(
            ApiTenantResponseModel response)
        {
            var request = new ApiTenantRequestModel();

            request.SetProperties(
                response.DataVersion,
                response.JSON,
                response.Name,
                response.ProjectIds,
                response.TenantTags);
            return(request);
        }
Пример #3
0
        public virtual ApiTenantResponseModel MapRequestToResponse(
            string id,
            ApiTenantRequestModel request)
        {
            var response = new ApiTenantResponseModel();

            response.SetProperties(id,
                                   request.DataVersion,
                                   request.JSON,
                                   request.Name,
                                   request.ProjectIds,
                                   request.TenantTags);
            return(response);
        }