//[HttpPost] public async Task <IActionResult> DeleteBar(Guid id) { if (id == null) { return(NotFound()); } try { var barToDelete = await barServices.DeleteBar(id); this.toastNotification.AddSuccessToastMessage(Exceptions.SuccessfullyDeleted); return(RedirectToAction("ListBars", "Bar", new { Area = "" })); } catch (Exception) { this.toastNotification.AddErrorToastMessage(Exceptions.SomethingWentWrong); return(RedirectToAction("ListBars")); } }