public async Task <ActionResult> Edit(Branch branch) { try { await _branchService.EditBranch(branch); return(RedirectToAction(nameof(Index))); } catch { return(RedirectToAction(nameof(Index))); } }