public async Task <ActionResult> Patch(UsersViewModel viewmodel) { await viewmodel.PatchUsers(Session); if (viewmodel.errorOccurred == true) { return(View(viewmodel)); } return(RedirectToAction("Edit", new { id = Convert.ToString(viewmodel.userPatchView.id) })); }