示例#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);
        }