Beispiel #1
0
 public void AddSchemaBPerson(ApiSchemaBPersonResponseModel item)
 {
     if (!this.SchemaBPersons.Any(x => x.Id == item.Id))
     {
         this.SchemaBPersons.Add(item);
     }
 }
        public virtual ApiSchemaBPersonRequestModel MapResponseToRequest(
            ApiSchemaBPersonResponseModel response)
        {
            var request = new ApiSchemaBPersonRequestModel();

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

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