public static void EOPTypeSeed(IEOPTypeService EOPTypeservice) { var types = new List <EOPType> { new EOPType { Id = 1, Name = "Product" }, new EOPType { Id = 2, Name = "Mechanization" }, new EOPType { Id = 3, Name = "Farmer Equity Contribution" }, }; foreach (var type in types) { EOPTypeservice.Create(type).Wait(); } }
public EoptypeController(IEOPTypeService eOPTypeService, IMapper mapper) { _mapper = mapper; _eOPTypeService = eOPTypeService; }