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() }); } }
public async Task <JsonResult> CreateDeviceStock(CreateDeviceStockInput input) { _deviceStockAppService.CreateDeviceStockAsync(input); return(Json(true, JsonRequestBehavior.AllowGet)); }