private void AddETag(ApplicationCourseCampus applicationCourseCampus)
        {
            var etag = Convert.ToBase64String(applicationCourseCampus.RowVersion);

            Response.Headers.Add("ETag", etag);
            _cache.Set($"ApplicationCourseCampus-{applicationCourseCampus.Id}-{etag}", applicationCourseCampus);
        }
        public void AddCourseCampusForApplication(int applicationId, ApplicationCourseCampus courseCampusForApplication)
        {
            var application  = GetApplication(applicationId, false);
            var courseCampus = GetCourseCampus(courseCampusForApplication.CourseCampusId);

            courseCampusForApplication.Application  = application;
            courseCampusForApplication.CourseCampus = courseCampus;
            //var applicationCourseCampus = new ApplicationCourseCampus()   //  SHOULD BE USED THIS WAY
            //{                                                             //  SHOULD BE USED THIS WAY
            //    Application = application,                                //  SHOULD BE USED THIS WAY
            //    CourseCampus = courseCampus                               //  SHOULD BE USED THIS WAY
            //};                                                            //  SHOULD BE USED THIS WAY
            _applicationInfoContext.ApplicationCourseCampuses.Add(courseCampusForApplication);
        }
 public void DeleteApplicationCourseCampusForApplication(ApplicationCourseCampus applicationCourseCampus)
 {
     _applicationInfoContext.ApplicationCourseCampuses.Remove(applicationCourseCampus);
 }
 public void UpdateCourseCampusForApplication(ApplicationCourseCampus applicationCourseCampus)
 {
     // no code in this implementation
 }