public async Task <ActionResultResponse> Insert(CustomException exception) { var result = await _exceptionRepository.Insert(exception); return(new ActionResultResponse(result, result <= 0 ? "Có gì đó hoạt động chưa đúng. Vui lòng liên hệ với quản trị viên." : "Thêm ngoại lệ thành công.")); }
public void ExceptionRequest(ExceptionInfo exceptionInfo) { _exceptionRepository.Insert(new ExceptionLogEntry() { Exception = exceptionInfo.Exception }); }