示例#1
0
 public void AddOrganization(ApiOrganizationResponseModel item)
 {
     if (!this.Organizations.Any(x => x.Id == item.Id))
     {
         this.Organizations.Add(item);
     }
 }
        public virtual ApiOrganizationRequestModel MapResponseToRequest(
            ApiOrganizationResponseModel response)
        {
            var request = new ApiOrganizationRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
        public virtual ApiOrganizationResponseModel MapRequestToResponse(
            int id,
            ApiOrganizationRequestModel request)
        {
            var response = new ApiOrganizationResponseModel();

            response.SetProperties(id,
                                   request.Name);
            return(response);
        }