public List <Admit> GetAdmits() { return(Admits .Include(t => t.Patient) .Include(t => t.Doctor) .Include(t => t.Bed) .ToList()); }
public void AddAdmit(Admit admits) { Admits.Add(admits); SaveChanges(); }