Exemple #1
0
        public JsonResult UpdtProd(ProductInfo prod)
        {
            string strReturn = "FAIL";

            if (prod != null && !string.IsNullOrEmpty(prod.ProductName))
            {
                IList <Model.ProductInfo> listProd = new List <Model.ProductInfo>();
                listProd.Add(prod);
                if (bll.AddUpdtProduct(listProd))
                {
                    strReturn = "SUCCESS";
                }
            }
            return(Json(strReturn));
        }