Пример #1
0
        public JsonResult DeleteSubjectBox(int id)
        {
            AjaxResultModel Result = new AjaxResultModel();

            try
            {
                bool check = User_Service.Delete(id);


                if (check)
                {
                    Result.Code   = 0;
                    Result.Result = "Thành công";
                }
                else
                {
                    Result.Code   = 1;
                    Result.Result = "Thao tác không thành công";
                }
            }
            catch (Exception Ex)
            {
                Result.Code   = 1;
                Result.Result = "Thao tác không thành công";
                IOHelper.WriteLog(StartUpPath, IpAddress, "InsertOrUpdateUser:", Ex.Message, Ex.ToString());
            }
            return(Json(new JsonResult()
            {
                Data = Result
            }));
        }