Example #1
0
        public async Task PrepareRFQVendorModel(RFPVendorModel model, Rfpvendor rfpvendor, int RfpPID)
        {
            var RFPrfq = await GetRfpNamesById(Convert.ToInt32(RfpPID));

            if (RFPrfq != null)
            {
                model.rfpName = RFPrfq.Rfptitle;
                model.Rfpid   = RfpPID;
            }

            foreach (var item in (await _selectItemsServices.GetVendorList((int)_workContext.CurrentCustomer.ClientId)))
            {
                model.AvailableVendors.Add(new SelectListItem {
                    Text = item.Vname, Value = item.VendorId.ToString()
                });
            }
        }
Example #2
0
        public async Task <bool> DeleteRfpvendors(Rfpvendor rfpvendor)
        {
            var result = await _rfpVendorRepository.DeleteAsync(rfpvendor);

            return(result != null ? true : false);
        }