Exemplo n.º 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());
        }
Exemplo n.º 2
0
        public HttpResponseMessage GetGSTApplicableList()
        {
            ResponseWithData <List <GSTApplicable> > _response = new ResponseWithData <List <GSTApplicable> >();
            var list = _common.GetGSTApplicable().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));
            }
        }