public async Task <IActionResult> Edit(int?id) { if (HttpContext.Session.GetString("fullname") == null) { return(RedirectToAction("LoginForm", "User")); } if (id == null) { return(NotFound()); } var getCustomerId = await _customerServices.FindId(id); return(View(getCustomerId)); }