public async Task <IActionResult> Detail(string id)
        {
            var company = await this.supportCompanyService.GetCurrentSupportCompany(id);

            var viewModel = new EditSupportCompanyViewModel
            {
                SupportCompanyDetails = company,
            };

            return(this.View(viewModel));
        }
        public async Task <IActionResult> Edit([FromForm] EditSupportCompanyViewModel model)
        {
            var isCreate = false;

            if (GlobalConstants.Editors.Contains(this.User.Identity.Name))
            {
                isCreate = await this.supportCompanyService.EditSupportCompany(model.Id, model.Name);
            }

            if (isCreate)
            {
                this.TempData["EditSupportCompany"] = $"Поддържащата фирма {model.Name} е редактирана!";
            }

            return(this.RedirectToAction("All"));
        }