示例#1
0
        public StudentOrganisationApp.App_Data.Advisor getAdvisorByID(int advID)
        {
            var adv = dataContext.sp_GetAdvisorByID(advID).First();

            StudentOrganisationApp.App_Data.Advisor advisor = new App_Data.Advisor();
            advisor.FirstName         = adv.FirstName;
            advisor.LastName          = adv.LastName;
            advisor.Email             = adv.Email;
            advisor.PhoneNumber       = adv.PhoneNumber;
            advisor.OffCampus         = adv.OffCampus;
            advisor.AdvisorTitle      = adv.AdvisorTitle;
            advisor.ProfessionalTitle = adv.ProfessionalTitle;

            return(advisor);
        }