public bool SaveOtp(int userId, string otp) { bool isUpdated = false; PatientInvite user = _context.Set <PatientInvite>().Where(x => x.Id == userId).FirstOrDefault(); if (user != null) { user.Otp = otp; _context.SaveChanges(); isUpdated = true; } return(isUpdated); }
public RepositoryBase(HCOrganizationContext _context) { this.context = _context; entities = context.Set <T>(); }
public IQueryable <T> GetAll() { return(context.Set <T>()); }