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()); }
public IActionResult Create(Users1 obj) { _db.Users1s.Add(obj); _db.SaveChanges(); return(View()); }