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

            request.SetProperties(
                response.Name);
            return(request);
        }
Пример #3
0
        public virtual ApiSchemaAPersonResponseModel MapRequestToResponse(
            int id,
            ApiSchemaAPersonRequestModel request)
        {
            var response = new ApiSchemaAPersonResponseModel();

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