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()); }
public HttpResponseMessage GeDealTypeList() { ResponseWithData <List <DealType> > _response = new ResponseWithData <List <DealType> >(); var list = _common.GetDealType().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)); } }