public async Task <ApiError> DeleteAllAsync(int userid) { try { return(ApiError.FromDalResult(await _noticeRepository.DeleteAllAsync(userid))); } catch (Exception ex) { return(ApiError.FromException(ex)); } }