public ErrorItemsPoco DeleteMatchingErrorItems(Err err) { var res = new ErrorItemsPoco(); var count = _err.DeleteMatchingErrorItems(err.ErrorId); res.RecordCount = count; res.ErrorItems = _err.GetErrorItems(); return(res); }
public async Task <ErrorItemsPoco> DeleteMatchingErrorItems(Err err) { var res = new ErrorItemsPoco(); var count = await _err.DeleteMatchingErrorItems(err.ErrorId); res.RecordCount = count; res.ErrorItems = await _err.GetErrorItems(); return(res); }