/// <summary>
 /// Initializes a new instance of the <see cref="PositionService"/> class with specified <see cref="IStaffCatalogueContext"/>.
 /// </summary>
 /// <param name="context">A <see cref="IStaffCatalogueContext"/>.</param>
 public PositionService(IStaffCatalogueContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LocationRepository"/> class with specified <see cref="IStaffCatalogueContext"/>.
 /// </summary>
 /// <param name="context">A <see cref="IStaffCatalogueContext"/>.</param>
 public LocationRepository(IStaffCatalogueContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }