public JsonPatchDocument <ApiVoteTypesRequestModel> CreatePatch(ApiVoteTypesRequestModel model) { var patch = new JsonPatchDocument <ApiVoteTypesRequestModel>(); patch.Replace(x => x.Name, model.Name); return(patch); }
public virtual ApiVoteTypesRequestModel MapResponseToRequest( ApiVoteTypesResponseModel response) { var request = new ApiVoteTypesRequestModel(); request.SetProperties( response.Name); return(request); }
public virtual ApiVoteTypesResponseModel MapRequestToResponse( int id, ApiVoteTypesRequestModel request) { var response = new ApiVoteTypesResponseModel(); response.SetProperties(id, request.Name); return(response); }