public ActionResult CreatePurchaseOffer(PurchaseOfferDTO model) { var traderId = Convert.ToInt32(Session["TraderId"]); if (ModelState.IsValid) { var dao = new OfferDao(); dao.Insert(model, traderId); } //return "{\"msg\":\"success\"}"; return(Json(new object[] { new object() }, JsonRequestBehavior.AllowGet)); }
public ActionResult CreatePurchaseOffer(PurchaseOfferDTO model) { var traderId = Convert.ToInt32(Session["TraderId"]); if (ModelState.IsValid) { var dao = new OfferDao(); dao.Insert(model, traderId); } //return "{\"msg\":\"success\"}"; return(Content("success")); }