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)); }
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)); }
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()); }