예제 #1
0
        public IActionResult AddCustomer(Customer1 obj)
        {
            int id = _db.Customer1s.Max(c => c.CustomerId);

            TempData["Cid"] = id + 1;

            _db.Customer1s.Add(obj);
            _db.SaveChanges();

            return(View());
        }
예제 #2
0
 public IActionResult Create(Users1 obj)
 {
     _db.Users1s.Add(obj);
     _db.SaveChanges();
     return(View());
 }