// OBRIŠI JEDAN ACCOUNT
 public bool deleteAcc(Account account)
 {
     using (BazaAccountManEntities ben = new BazaAccountManEntities())
     {
         try
         {
             int          cid = Convert.ToInt32(account.Id);
             AccountTable at  = ben.AccountTables.Single(ata => ata.AccID == cid);
             ben.AccountTables.Remove(at);
             ben.SaveChanges();
             return(true);
         }
         catch
         {
             return(false);
         }
     }
 }
 // KREIRAJ NOVI RAČUN
 public bool createAcc(Account account)
 {
     using (BazaAccountManEntities ben = new BazaAccountManEntities())
     {
         try
         {
             AccountTable at = new AccountTable();
             at.ImeAcc   = account.Ime;
             at.TipAcc   = account.Tip;
             at.Kreirano = account.Kreirano;
             at.Izmjena  = account.Izmjena;
             ben.AccountTables.Add(at);
             ben.SaveChanges();
             return(true);
         }
         catch
         {
             return(false);
         }
     }
 }
 // UPDATE ACCOUNT
 public bool updateAccData(Account account)
 {
     using (BazaAccountManEntities ben = new BazaAccountManEntities())
     {
         try
         {
             int          cid = Convert.ToInt32(account.Id);
             AccountTable at  = ben.AccountTables.Single(ata => ata.AccID == cid);
             at.ImeAcc   = account.Ime;
             at.TipAcc   = account.Tip;
             at.Kreirano = account.Kreirano;
             at.Izmjena  = account.Izmjena;
             ben.SaveChanges();
             return(true);
         }
         catch
         {
             return(false);
         }
     }
 }