Existing code
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
namespace LaaProductionWeb.Services.Models
|
||||
{
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class OrderPositions : IEnumerable<int>
|
||||
{
|
||||
private readonly IEnumerable<int> positions;
|
||||
|
||||
public OrderPositions(IEnumerable<int> positions)
|
||||
=> this.positions = positions;
|
||||
|
||||
public IEnumerator<int> GetEnumerator()
|
||||
=> this.positions.GetEnumerator();
|
||||
|
||||
IEnumerator IEnumerable.GetEnumerator()
|
||||
=> this.GetEnumerator();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user