public async Task <AltInnSrrRights> AddRights(int orgnr, DateTime endDate) { var result = await serviceClient.AddRights(orgnr, endDate); var errors = result.Where(r => r.OperationResult != OperationResult.Ok); var errorResponses = errors as IList <AddRightResponse> ?? errors.ToList(); if (errorResponses.Any()) { HandleErrors(errorResponses); } return(GetAddAltInnSrrRights(result)); }