Exemple #1
0
        public IActionResult LoadData()
        {
            StoreContext context    = HttpContext.RequestServices.GetService(typeof(GoBear.Models.StoreContext)) as StoreContext;
            var          insurrance = context.GetAllInsu();
            var          bank       = context.GetAllBank();
            var          data       = from i in insurrance
                                      join b in bank on i.id_Bank equals b.id_Bank
                                      select new
            {
                i,
                b
            };

            return(new JsonResult(data));
        }