示例#1
0
        public async Task <IActionResult> DeleteConfirmed(Guid id)
        {
            var warningViewModel = await GetDetailsWarning(id);

            if (warningViewModel == null)
            {
                return(NotFound());
            }

            await _warningService.Delete(id);

            return(RedirectToAction(nameof(Index)));
        }
示例#2
0
 public JsonResult Delete(int id)
 {
     _warningService.Delete(id);
     return(new JsonFactory().Success(MessageConstants.Delete));
 }
示例#3
0
 public SuccessResponse Delete(DeleteWarningRequest request)
 {
     return(_warningService.Delete(request));
 }