public void AddSchemaAPerson(ApiSchemaAPersonResponseModel item) { if (!this.SchemaAPersons.Any(x => x.Id == item.Id)) { this.SchemaAPersons.Add(item); } }
public virtual ApiSchemaAPersonRequestModel MapResponseToRequest( ApiSchemaAPersonResponseModel response) { var request = new ApiSchemaAPersonRequestModel(); request.SetProperties( response.Name); return(request); }
public virtual ApiSchemaAPersonResponseModel MapRequestToResponse( int id, ApiSchemaAPersonRequestModel request) { var response = new ApiSchemaAPersonResponseModel(); response.SetProperties(id, request.Name); return(response); }