Example #1
0
        public JsonResult getItemsList(int id)
        {
            List <Item> items = po.getItems(id);

            if (items.Count < 1)
            {
                return(Json("No Stock Found !!! ", JsonRequestBehavior.AllowGet));
            }
            return(Json(items, JsonRequestBehavior.AllowGet));
        }