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));
        }
Exemplo n.º 2
0
        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"));
        }