Exemple #1
0
        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));
        }