예제 #1
0
        public JsonResult ChangeStatus(string id)
        {
            id = CommonHelper.ReplaceSpecialCharacter(id);
            var currentStatus = _newStoreService.GetNewById(id);
            var status        = currentStatus.STATUS == true ? "0" : "1";
            var check         = _newStoreService.NewChangeStatus(id, status);
            var msg           = check ? "Change Status Successfully." : "Change Status Error.";

            return(Json(msg));
        }