/// <summary> /// Update Container reference on the basis of selected parameter /// </summary> /// <param name="TableName"></param> /// <param name="RecordId"></param> /// <param name="ContainerId"></param> /// <returns></returns> public JsonResult UpdateProductContainer(string TableName, int RecordId, int ContainerId) { Ctx ctx = Session["ctx"] as Ctx; ProductContainerModel model = new ProductContainerModel(ctx); return(Json(JsonConvert.SerializeObject(model.UpdateProductContainer(TableName, RecordId, ContainerId)), JsonRequestBehavior.AllowGet)); }