/// <summary> /// Gets an <see cref="IInvoiceStatus"/> by it's key /// </summary> /// <param name="key">The <see cref="IInvoiceStatus"/> key</param> /// <returns><see cref="IInvoiceStatus"/></returns> public IInvoiceStatus GetInvoiceStatusByKey(Guid key) { using (var repository = _repositoryFactory.CreateInvoiceStatusRepository(_uowProvider.GetUnitOfWork())) { return(repository.Get(key)); } }