public void editZakazanuPosetu()
        {
            ZakazanaPoseta z = (from m in context.ZakazanePosete
                                where m.IDZakazanePosete == IDZakazanePosete
                                select m).First();

            z.Napomena   = Napomena;
            z.DatumVreme = new DateTime(Godina, Mesec, Dan, Sat, Minut, 0);

            context.SaveChanges();
        }
        public void loadData()
        {
            ZakazanaPoseta z = (from m in context.ZakazanePosete
                                where m.IDZakazanePosete == IDZakazanePosete
                                select m).First();

            Napomena = z.Napomena;
            Dan      = z.DatumVreme.Day;
            Mesec    = z.DatumVreme.Month;
            Godina   = z.DatumVreme.Year;
            Sat      = z.DatumVreme.Hour;
            Minut    = z.DatumVreme.Minute;
        }