public EOPController(IEOPService eOPService, IMapper mapper, IHttpContextAccessor contextAccessor) { _mapper = mapper; _eOPService = eOPService; _contextAccessor = contextAccessor; }
public static void SeedEOP(IEOPService EOPservice) { var EOPS = new List <EOP> { new EOP { ComponentName = "Arrow", Brand = "ARROW 1 KG", Qty = 1, RatePerUnit = 3500, EOPUnitId = 1, EOPTypeId = 1, CommodityId = 1 }, new EOP { ComponentName = "Perfect Killer ", Brand = "ARROW ", Qty = 1, RatePerUnit = 3500, EOPUnitId = 2, EOPTypeId = 1, CommodityId = 1 }, }; foreach (var EOP in EOPS) { EOPservice.Create(EOP).Wait(); } }