Ejemplo n.º 1
0
        public async Task <IActionResult> OnPostDeleteButtonAsync(string buttonId)
        {
            if (string.IsNullOrEmpty(buttonId))
            {
                return(Ok(false));
            }
            await _sysButtonService.DeleteObjectAsync(_ => _.Id == buttonId);

            return(Ok(true));
        }