public HomeController(MobileContext context) { db = context; ManaggerShop manager = new ManaggerShop(); list = manager.getList(context); }
public IList<Phone> getList(MobileContext context) => context.Phones.ToList();