Exemplo n.º 1
0
        public async System.Threading.Tasks.Task <ActionResult> CheckBarcode(string Barcode, string Previousbarcode)
        {
            if (Barcode == Previousbarcode)
            {
                return(Json(true, JsonRequestBehavior.AllowGet));
            }
            bool check = Commonhelper.GetBarcode(Barcode);

            if (check)
            {
                return(Json(false, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json(true, JsonRequestBehavior.AllowGet));
            }
        }