public bool IsEmailRegistered(string EmailID) { var context = new TrainingPortalEntities(); //Checks if the input email exist within the database var isExist = context.Students.Where(s => s.StudentEmail == EmailID).FirstOrDefault(); return isExist != null; }
public StudentRepository(TrainingPortalEntities _context) { this.context = _context; }