コード例 #1
0
        public Category GetCategoryByBusiness(Business bs)
        {
            var result = _context.Categories.Include(c => c.Businesses).Where(c => c.Businesses == bs).FirstOrDefault();

            return(result);
        }
コード例 #2
0
 public void UpdateBusiness(Business bs)
 {
     _context.Businesses.Update(bs);
 }