public JsonResult AddPrice(decimal id) { OracleRepository repo = new OracleRepository(); var result = repo.InsertOrUpdatePriceForListing(id, null, null, null, null, null, HttpContext.User.Identity.Name); return Json(result, JsonRequestBehavior.AllowGet); }
public JsonResult UpdatePrice(decimal id, int listing_id, DateTime? effective_date, DateTime? date_listed, decimal? new_price, decimal? old_price) { OracleRepository repo = new OracleRepository(); var result = repo.InsertOrUpdatePriceForListing(listing_id, id, effective_date, date_listed, new_price, old_price, HttpContext.User.Identity.Name); return Json(result, JsonRequestBehavior.AllowGet); }