Пример #1
0
        public async Task <IActionResult> DropBranch(int ID)
        {
            Result = await _setupService.DropBranchAsync(ID);

            if (Result)
            {
                StatusMessage = _config.GetSection("Messages")["Success"];
                return(RedirectToAction(nameof(BranchListing)));
            }
            else
            {
                StatusMessage = "Error: Unable to delete branch";
                return(RedirectToAction(nameof(BranchListing)));
            }
        }