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

            patch.Replace(x => x.EndTime, model.EndTime);
            patch.Replace(x => x.ModifiedDate, model.ModifiedDate);
            patch.Replace(x => x.Name, model.Name);
            patch.Replace(x => x.StartTime, model.StartTime);
            return(patch);
        }
        public virtual ApiShiftRequestModel MapResponseToRequest(
            ApiShiftResponseModel response)
        {
            var request = new ApiShiftRequestModel();

            request.SetProperties(
                response.EndTime,
                response.ModifiedDate,
                response.Name,
                response.StartTime);
            return(request);
        }
        public virtual ApiShiftResponseModel MapRequestToResponse(
            int shiftID,
            ApiShiftRequestModel request)
        {
            var response = new ApiShiftResponseModel();

            response.SetProperties(shiftID,
                                   request.EndTime,
                                   request.ModifiedDate,
                                   request.Name,
                                   request.StartTime);
            return(response);
        }