Exemplo n.º 1
0
        public ActionResult DeleteCategory(decimal p_category_id)
        {
            try
            {
                // Kiểm tra có phiên làm việc không
                var objUser = SessionData.CurrentUser as User_Info;
                if (objUser == null)
                {
                    // thoát đăng nhập
                    return(Json(new { success = -1 }));
                }

                Category_BL _Category_BL = new Category_BL();

                decimal _kq = _Category_BL.Category_Delete(p_category_id);
                return(Json(new { success = _kq }));
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
                return(Json(new { success = -1 }));
            }
        }