/// <summary>
        /// Save Save Reject with StandBy PNR from Revenue
        /// If Say "No & StandBy"
        /// </summary>
        /// <param name="objRevenueRejectModel"></param>
        /// <param name="strPrm"></param>
        /// <returns></returns>
        public bool SaveRejectwithStandByPNR_Revenue(TravelRequestMasterModels_RejectwithStandByPNR objRevenueRejectModel)
        {
            _context.TravelRequestMasterModels_RejectwithStandByPNR.Add(objRevenueRejectModel);
            var s = _context.SaveChanges();

            return(s > 0 ? true : false);
        }
예제 #2
0
        /// <summary>
        /// Save Data in Sod ravel Request Mster-Standby NPR Model
        /// If Revenue say "No with SandBy"
        /// </summary>
        /// <param name="trMasterList"></param>
        /// <param name="strPNR"></param>
        /// <returns></returns>
        public bool SaveRejectwithStandByPNR(TravelRequestMasterModels sodRequestsList, string pnr)
        {
            var objRejectList = new TravelRequestMasterModels_RejectwithStandByPNR
            {
                TravelRequestId  = sodRequestsList.TravelRequestId,
                BookingFor       = sodRequestsList.BookingFor,
                RequestedEmpId   = sodRequestsList.RequestedEmpId,
                RequestedEmpCode = sodRequestsList.RequestedEmpCode,
                Title            = sodRequestsList.Title,
                RequestedEmpName = sodRequestsList.RequestedEmpName,
                Email            = sodRequestsList.EmailId,
                MobileNo         = sodRequestsList.Phno,
                Pnr                     = pnr.Split('|')[0],
                PnrAmount               = Convert.ToDecimal(pnr.Split('|')[1]),
                PNRCreateddate          = DateTime.Now,
                PNRCreatedby            = "Revenue Dept.",
                IsAmountPaidByTraveller = sodRequestsList.IsAmountPaidByTraveller,
                IsHotelRequired         = sodRequestsList.IsHotelRequired,
                IsOKtoBoard             = sodRequestsList.IsOKtoBoard,
                HotelApproval           = sodRequestsList.HotelApproval,
                SJSCHodEmailId          = sodRequestsList.SJSCHodEmailId,
                IsVendorBooking         = sodRequestsList.IsVendorBooking,
                IsSJSC                  = sodRequestsList.IsSJSC
            };
            var s = _sodApproverRepositorty.SaveRejectwithStandByPNR_Revenue(objRejectList);

            return(true);
        }