public JsonResult IsCategoryNameExist(string categoryName)
        {
            POSManagementSystemBdContext dbpri = new POSManagementSystemBdContext();
            Category cat = dbpri.Categories.Find(categoryName);

            if (cat == null)
            {
                return(Json(true, JsonRequestBehavior.AllowGet));
            }
            return(Json("Category Already Exist, Try Another", JsonRequestBehavior.AllowGet));
        }