public ActionResult TeachingStaff() { var tech = staffRepository.GetStaffs().Select(x => new StaffModel { ID = x.ID, AadharNumber = x.AadharNumber, DateOfBirth = x.DateOfBirth, DateOfJoin = x.DateOfJoin, Designation = x.Designation, Experience = x.Experience, FatherName = x.FatherName, PanNumber = x.PanNumber, Salary = x.Salary, StaffName = x.StaffName, StaffType = x.StaffType, Subject = x.Subject, SubjectNumFirst = x.SubjectNumFirst, SubjectNumSecond = x.SubjectNumSecond, TeachSubFirst = x.TeachSubFirst, TeachSubSecond = x.TeachSubSecond }); return(View(tech)); }
// GET: api/Staff /// <summary> /// Get all the staffs /// </summary> /// <returns>List of StaffModel</returns> public List <StaffModel> Get() { return(_staffRepository.GetStaffs()); }