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