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

            patch.Replace(x => x.LessonId, model.LessonId);
            patch.Replace(x => x.StudentId, model.StudentId);
            return(patch);
        }
        public virtual ApiLessonXStudentRequestModel MapResponseToRequest(
            ApiLessonXStudentResponseModel response)
        {
            var request = new ApiLessonXStudentRequestModel();

            request.SetProperties(
                response.LessonId,
                response.StudentId);
            return(request);
        }
        public virtual ApiLessonXStudentResponseModel MapRequestToResponse(
            int id,
            ApiLessonXStudentRequestModel request)
        {
            var response = new ApiLessonXStudentResponseModel();

            response.SetProperties(id,
                                   request.LessonId,
                                   request.StudentId);
            return(response);
        }