示例#1
0
        public async Task <IActionResult> Delete(string id)
        {
            await _service.Delete(id);

            return(Redirect("/script"));
        }
示例#2
0
        public async Task <IActionResult> DeleteScript(int id, CancellationToken cancellationToken)
        {
            await _service.Delete(id, HttpContext.GetCurrentUserId(), cancellationToken);

            return(NoContent());
        }