public StudentList getDriverByStudID(int StudID) { StudentList driver = new StudentList(); var stud = dataContext.sp_GetDriverByStuID(StudID).First(); driver.FirstName = stud.FirstName; driver.LastName = stud.LastName; driver.Name = stud.FirstName + " " + stud.LastName; if (stud.CertifiedDriver == true) { driver.Drivertype = "Certified"; } else { driver.Drivertype = "Approved"; } return(driver); }