public JsonPatchDocument <ApiFileTypeRequestModel> CreatePatch(ApiFileTypeRequestModel model)
        {
            var patch = new JsonPatchDocument <ApiFileTypeRequestModel>();

            patch.Replace(x => x.Name, model.Name);
            return(patch);
        }
        public virtual ApiFileTypeRequestModel MapResponseToRequest(
            ApiFileTypeResponseModel response)
        {
            var request = new ApiFileTypeRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
        public virtual ApiFileTypeResponseModel MapRequestToResponse(
            int id,
            ApiFileTypeRequestModel request)
        {
            var response = new ApiFileTypeResponseModel();

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