public JsonResult CheckRef(string ID) { ResponseMsg response = new ResponseMsg(); response.IsSuccess = PackingLogic.CheckReference(ID); return(Json(response, JsonRequestBehavior.AllowGet)); }
public bool CheckPackingInUse(int ProductID, int PackingID) { if (PackingLogic.CheckReference(ProductID, PackingID)) { return(false); } else { if (PackingID > 0 && ProductID > 0) { return(true); } else { return(false); } } }