//Checking Item Name Availability public JsonResult CheckItemName(string itemName, int itemCategory) { status = itemBll.CheckItemName(itemName, itemCategory); if (status == true) { return(Json(1)); } return(Json(0)); }