예제 #1
0
        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();
            }
        }
예제 #2
0
 public EoptypeController(IEOPTypeService eOPTypeService, IMapper mapper)
 {
     _mapper         = mapper;
     _eOPTypeService = eOPTypeService;
 }