コード例 #1
0
ファイル: BLL.cs プロジェクト: busrasagirr/kutuphane
        public int KiralamaDuzenle(int kiralamaID, DateTime kiralamaBaslangicTarihi, DateTime kiralamaBitisTarihi, double kiralamaFiyati, int kitapID, int uyeID)
        {
            if (kiralamaID != 0)
            {
                return(dll.KiralamaDuzenle(new Entities.Kiralama()
                {
                    KiralamaID = kiralamaID,
                    KiralamaBaslangicTarihi = kiralamaBaslangicTarihi,
                    KiralamaBitisTarihi = kiralamaBitisTarihi,

                    KiralamaFiyati = kiralamaFiyati,
                    KitapID = kitapID,
                    UyeID = uyeID
                }));
            }
            else
            {
                return(-1);
            }
        }