public IEnumerable <Contact> GetAll(int clientId) { var db = new ProjectDBContext(); return(db.Set <Contact>().FromSql("dbo.GetClientContacts @Id={0}", clientId)); }
public List <T> GetAll() { return(db.Set <T>().ToList()); }