public ActionResult GetAccForRol(string id) { AccountManagementServiceClient amsc = new AccountManagementServiceClient(); ViewBag.listAccForRol = amsc.findAllAccByRol(id); return(View()); }
public ActionResult UpdateAccountData(AccountManagementViewModel amvm) { AccountManagementServiceClient amsc = new AccountManagementServiceClient(); amsc.updateAccData(amvm.Account); return(RedirectToAction("IndexAccount")); }
// BRISANJE RAČUNA public ActionResult DeleteAccount(string id) { AccountManagementServiceClient amsc = new AccountManagementServiceClient(); amsc.deleteAcc(amsc.findAcc(id)); return(RedirectToAction("IndexAccount")); }
// REMOVE ACCOUNT FROM ROLE public ActionResult RemoveAccountFromRole(string accID) { AccountManagementServiceClient amsc = new AccountManagementServiceClient(); amsc.removeRoleFromAcc(amsc.findAccRoleMapp(accID)); return(RedirectToAction("IndexAccount")); }
public ActionResult AddaccountToRole(AccountManagementViewModel amvm) { AccountManagementServiceClient amsc = new AccountManagementServiceClient(); amsc.addAccToRole(amvm.AccRoleMapp); return(RedirectToAction("IndexAccount")); }
// ISPIŠI SVE RAČUNE U TABLICI public ActionResult IndexAccount() { AccountManagementServiceClient amsc = new AccountManagementServiceClient(); ViewBag.listAccounts = amsc.findAllAcc(); return(View()); }
public ActionResult GetRolForAcc(string id) { AccountManagementServiceClient amsc = new AccountManagementServiceClient(); ViewBag.listRolForAcc = amsc.findAllRolByAcc(id); return(View()); }
public ActionResult ShowAccountData(string id) { AccountManagementServiceClient amsc = new AccountManagementServiceClient(); AccountManagementViewModel amvm = new AccountManagementViewModel(); amvm.Account = amsc.findAcc(id); return(View("ShowAccountData", amvm)); }