public JsonResult AddDriveInOrDock(decimal id) { OracleRepository repo = new OracleRepository(); var result = repo.InsertOrUpdateDriveInForListing(id, null, null, null, HttpContext.User.Identity.Name); return Json(result, JsonRequestBehavior.AllowGet); }
public JsonResult UpdateDriveInOrDock(decimal id, int listing_id,string type, decimal? amount, decimal? size_of) { OracleRepository repo = new OracleRepository(); bool result = false; if (type == "LOADING DOCK") { result = repo.InsertOrUpdateLoadingDockForListing(listing_id, id, amount, size_of, HttpContext.User.Identity.Name); } else { result = repo.InsertOrUpdateDriveInForListing(listing_id, id, amount, size_of, HttpContext.User.Identity.Name); } return Json(result, JsonRequestBehavior.AllowGet); }