Пример #1
0
        public ActionResult CreateDeal()
        {
            ViewBag.BindProduct           = _productRepository.BindProducts().ToList();
            ViewBag.BindDealType          = _commonRepository.GetDealType().ToList();
            ViewBag.BindDealApplicableFor = _commonRepository.GetDealApplicableFor().ToList();
            // ViewBag.BindProductType = _commonRepository.GetProductType().ToList();
            ViewBag.BindFormType      = _commonRepository.GetFormType().ToList();
            ViewBag.BindPackType      = _commonRepository.GetPackType().ToList();
            ViewBag.BindGSTApplicable = _commonRepository.GetGSTApplicable().ToList();
            ViewBag.BindSchemeType    = _commonRepository.GetSchemeType().ToList();
            IEnumerable <SelectListItem> _applicableTaxType = from ApplicableTaxType att in Enum.GetValues(typeof(ApplicableTaxType))
                                                              select new SelectListItem
            {
                Text  = att.ToString(),
                Value = Convert.ToInt32(att).ToString()
            };

            ViewBag.ApplicableTaxType = _applicableTaxType;

            return(View());
        }
Пример #2
0
        public HttpResponseMessage GePackTypeList()
        {
            ResponseWithData <List <PackType> > _response = new ResponseWithData <List <PackType> >();
            var list = _common.GetPackType().ToList();

            if (list.Count > 0)
            {
                _response.Type    = "success";
                _response.Message = "success";
                _response.data    = list;
                return(Request.CreateResponse(HttpStatusCode.OK, _response));
            }
            else
            {
                _response.Type    = "error";
                _response.Message = "No Record Found";
                _response.data    = list;
                return(Request.CreateResponse(HttpStatusCode.OK, _response));
            }
        }