public ActionResult DeleteCompany(Guid uniqueId, string name) { var company = _adminManager.GetCompanyDetails(uniqueId); if (_adminManager.DeleteCompany(company.Id, name)) { this.SetNotificationMessage(NotificationType.Success, "The company was successfully deleted"); return(RedirectToAction("Dashboard")); } this.SetNotificationMessage(NotificationType.Error, "The company was NOT deleted. Try again"); return(RedirectToAction("ViewCompany", new { uniqueId })); }