Beispiel #1
0
        public bool Insert(Dokuman model)
        {
            KullaniciDokuman kullaniciDokuman = new KullaniciDokuman
            {
                DokumanId   = _dokumanService.Insert(model),
                KullaniciId = model.Olusturankisi,
                Etkinlikid  = model.Guncelleyenkisi
            };

            const string Sql = "insert into public.kullanicidokuman (kullaniciid, dokumanid, etkinlikid) values(@kullaniciid, @dokumanid, @etkinlikid)";

            return(_genericRepository.Insert(Sql, kullaniciDokuman));
        }
        public int Insert(Dokuman model)
        {
            const string Sql = "insert into public.dokuman (ad, tip, boyut, dokumandata) values(@ad, @tip, @boyut, @dokumandata)";

            return(_genericRepository.InsertAndGetId(Sql, model));
        }