public IActionResult EditClient(ClientViewModel viewModel, int id)
 {
     if (ModelState.IsValid)
     {
         Client client = new Client {
             Id             = id,
             Name           = viewModel.Name,
             Surname        = viewModel.Surname,
             PassportNum    = viewModel.PassportNum,
             PassportSeries = viewModel.PassportSeries,
             Adress         = viewModel.Adress,
             Email          = viewModel.Email
         };
         _context.UpdateClient(client);
         return(RedirectToAction("Clients", "Bank"));
     }
     return(RedirectToAction("ClientProfile", viewModel));
 }