Beispiel #1
0
        public ActionResult DeleteUser(AppUserViewModel appUser)
        {
            try
            {
                invoicesService.RemoveByUser(appUser.Id);

                adminService.RemoveUser(appUser.Id);

                return(RedirectToAction("Users"));
            }
            catch (Exception ex)
            {
                deliveryMessage.Title = "Адміністрування";
                deliveryMessage.Body  = ex.Message;
                return(View("DeliveryMessage", deliveryMessage));
            }
        }