public JsonPatchDocument <ApiFollowingRequestModel> CreatePatch(ApiFollowingRequestModel model) { var patch = new JsonPatchDocument <ApiFollowingRequestModel>(); patch.Replace(x => x.DateFollowed, model.DateFollowed); patch.Replace(x => x.Muted, model.Muted); return(patch); }
public virtual ApiFollowingRequestModel MapResponseToRequest( ApiFollowingResponseModel response) { var request = new ApiFollowingRequestModel(); request.SetProperties( response.DateFollowed, response.Muted); return(request); }
public virtual ApiFollowingResponseModel MapRequestToResponse( string userId, ApiFollowingRequestModel request) { var response = new ApiFollowingResponseModel(); response.SetProperties(userId, request.DateFollowed, request.Muted); return(response); }