コード例 #1
0
        // GET: SystemLanguageCode/Details/5
        public ActionResult Details(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            SystemLanguageCodePoco systemLanguageCodePoco = systemLanguageLogic.GetSingle(l => l.LanguageID == id); //db.SystemLanguageCodes.Find(id);

            if (systemLanguageCodePoco == null)
            {
                return(HttpNotFound());
            }
            return(View(systemLanguageCodePoco));
        }
コード例 #2
0
        // GET: Jobs/Details/5
        public ActionResult Details(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CompanyJobDescriptionPoco companyjob = _EF.GetSingle(c => c.Id == id);//db.CompanyJobs.Find(id);

            if (companyjob == null)
            {
                return(HttpNotFound());
            }
            return(View(companyjob));
        }
コード例 #3
0
        // GET: ApplicantEducation/Details/5
        public ActionResult Details(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            //ApplicantEducationPoco applicantEducationPoco = db.ApplicantEducations.Find(id);
            ApplicantEducationPoco applicantEducationPoco = repo.GetSingle(a => a.Id == id);

            if (applicantEducationPoco == null)
            {
                return(HttpNotFound());
            }
            return(View(applicantEducationPoco));
        }
コード例 #4
0
 public CoursePoco GetSingle(int id)
 {
     return(_eFGenericRepository.GetSingle(student => student.CourseID == id));
 }
コード例 #5
0
 public StudentPoco GetSingle(int id)
 {
     return(_eFGenericRepository
            .GetSingle(student => student.StudentID == id, s => s.Enrollments));
 }
コード例 #6
0
 public EnrollmentPoco GetSingle(int id)
 {
     return(_eFGenericRepository.GetSingle(studentCourse => studentCourse.EnrollmentID == id));
 }