public static void Update(Djelatnik inDjelatnik)
 {
     using (ISession session = SessionFactory.OpenSession())
     {
         using (ITransaction transaction = session.BeginTransaction())
         {
             session.Update(inDjelatnik);
             transaction.Commit();
         }
     }
 }
 public static void Delete(Djelatnik forDelete)
 {
     using (ISession session = SessionFactory.OpenSession())
     {
         using (ITransaction transaction = session.BeginTransaction())
         {
             session.Delete(forDelete);
             transaction.Commit();
         }
     }
 }