/* public OfferedViewModel GetOfferedById(string id) { * return OfferedRepository.GetById(id); * } * * public StudentViewModel GetStudentById(string id) * { * return StudentRepository.GetById(id); * } * * public UserViewModel GetUser(string login, string password) { * return UserRepository.GetUser(login, password); * } * * public UserViewModel GetUserById(string login) * { * return UserRepository.GetById(login); * } * * public List<OfferedViewModel> GetOfferedByFacultyID(int facultyId) * { * return OfferedRepository.GetByFacultyID(facultyId); * } * * public List<EnrollmentViewModel> GetEnrollmentByStudentID(string studentId) * { * return EnrollmentRepository.GetByStudentID(studentId); * } * * public List<UserViewModel> FindAllUser(string id) * { * return UserRepository.FindAll(id).ToList(); * } * * * public bool InsertUser(UserViewModel user) { * return UserRepository.Insert(user); * } * public bool DeleteUser(UserViewModel user) * { * return UserRepository.Delete(user); * } */ public int Complete() { return(Context.SaveChanges()); }