示例#1
0
        public JsonResult Insert_SupplierDetail(SupplierVM model)
        {
            string msg    = "Oops, Something went wrong.";
            bool   result = false;

            result = SupplierMethods.Insert_SupplierMaster(model);

            if (result)
            {
                msg = "Record Successfully Saved.";
            }

            return(Json(new { Success = result, Message = msg }, JsonRequestBehavior.AllowGet));
        }
示例#2
0
        public JsonResult Select_Supplier(string EnquiryId)
        {
            string data   = "";
            bool   result = false;

            data = SupplierMethods.Get_SupplierData(EnquiryId, Session["DealerCode"].ToString());

            if (!string.IsNullOrEmpty(data))
            {
                result = true;
            }

            return(Json(new { Success = result, Response = data }, JsonRequestBehavior.AllowGet));
        }
示例#3
0
        public ActionResult SupplierMain()
        {
            if (string.IsNullOrEmpty((string)Session["DealerCode"]))
            {
                return(RedirectToAction("NewLogin", "Home"));
            }
            dealerCode = Session["DealerCode"].ToString();

            List <SupplierVM> lstSupplier = SupplierMethods.GetSupplierModal(dealerCode);

            ViewBag.Suppliers = lstSupplier;

            return(View());
        }