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))); }
public JsonResult Delete(int id) { _warningService.Delete(id); return(new JsonFactory().Success(MessageConstants.Delete)); }
public SuccessResponse Delete(DeleteWarningRequest request) { return(_warningService.Delete(request)); }