コード例 #1
0
        public bool Delete([FromBody] TblBookingMaster booking)
        {
            try
            {
                this._repoWrapper.Booking.Delete(booking);
                this._repoWrapper.Booking.Save();
                return(true);
            }

            catch (Exception e)
            {
                return(false);
            }
        }
コード例 #2
0
        public bool Update([FromBody] TblBookingMaster booking)
        {
            try
            {
                this._repoWrapper.Booking.SaveBookinginCustomerTransaction(booking);
                this._repoWrapper.Booking.Update(booking);
                this._repoWrapper.Booking.Save();
                return(true);
            }

            catch (Exception e)
            {
                return(false);
            }
        }
コード例 #3
0
        public IEnumerable <ViewStockDetails> GetCustomerLedger([FromBody] TblBookingMaster boooking)
        {
            var Product = this._repoWrapper.Product.GetCustomerLedger(Convert.ToInt32(boooking.CustomerId));

            return(Product);
        }
コード例 #4
0
        public IEnumerable <TblBookingMaster> GetPlanByCustID([FromBody] TblBookingMaster booking)
        {
            var Booking = this._repoWrapper.Booking.GetAllBookingForCustomer(booking);

            return(Booking);
        }