public JsonResult ChangeStatus(string id) { id = CommonHelper.ReplaceSpecialCharacter(id); var currentStatus = _blockStoreService.GetBlockById(id); var status = currentStatus.STATUS == true ? "0": "1"; var check = _blockStoreService.BlockChangeStatus(id, status); var msg = check ? "Change Status Successfully." : "Change Status Error."; return(Json(msg)); }