예제 #1
0
        public IActionResult DelDownList(int id)
        {
            string msg       = "";
            bool   IsSuccess = true;
            var    r         = Iemployee.DelDownList(id);

            if (!string.IsNullOrEmpty(r.Exception?.Message))
            {
                IsSuccess = false;
                msg       = r.Exception?.Message;
            }
            if (IsSuccess == true)
            {
                IsSuccess = cache.Remove("DownList").Result;
            }
            return(Json(new { IsSuccess = IsSuccess, msg = msg }));
        }