Пример #1
0
        public async Task CreateDeviceStockAsync(CreateDeviceStockInput input)
        {
            var nos = input.DeviceStock.Nos.Split(Environment.NewLine);

            foreach (var no in nos)
            {
                await _deviceStockRepository.InsertAsync(new DeviceStock()
                {
                    No = no.Trim()
                });
            }
        }
Пример #2
0
 public async Task <JsonResult> CreateDeviceStock(CreateDeviceStockInput input)
 {
     _deviceStockAppService.CreateDeviceStockAsync(input);
     return(Json(true, JsonRequestBehavior.AllowGet));
 }