public IEnumerable <User> GetUserByName(string name) { using (var ctx = new RiskzeroContext()) { return(ctx.Users.Where(x => x.FullName == name)); } }
public Appoiment GetAppoimentById(int id) { using (var ctx = new RiskzeroContext()) { return(ctx.Appoiments.Find(id)); } }
public Agenda GetAgendaById(int id) { using (var ctx = new RiskzeroContext()) { return(ctx.Agendas.Find(id)); } }
public User GetUserById(int id) { using (var ctx = new RiskzeroContext()) { return(ctx.Users.Find(id)); } }
public Question GetQuestionById(int id) { using (var ctx = new RiskzeroContext()) { return(ctx.Questions.Find(id)); } }
public IEnumerable <Patient> GetByBirthDate(DateTime birthDate) { using (var ctx = new RiskzeroContext()) { return(ctx.Patients.Where(x => x.BirthDate == birthDate)); } }
public Patient GetPatientById(int id) { using (var ctx = new RiskzeroContext()) { return(ctx.Patients.Find(id)); } }
public IEnumerable <Patient> GetByName(string name) { using (var ctx = new RiskzeroContext()) { return(ctx.Patients.Where(p => p.FullName == name)); } }
public Statistic GetStatisticById(int id) { using (var ctx = new RiskzeroContext()) { return(ctx.Statistics.Find(id)); } }