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