public void DeleteMainDetailsOrder() { if (DyeingOrderHeader.DyeingProductionOrder != 0) { _webService.DeleteDyeingMainDetailsAsync(DyeingMapper.DbMapToDyeingorderMainDetail(SelectedMainDetails)); DyeingOrderMainDetailList.Remove(SelectedMainDetails); } }
public void SaveOrder() { var header = (TblDyeingOrdersHeader) new TblDyeingOrdersHeader().InjectFrom(DyeingOrderHeader); var mainDetails = new ObservableCollection <TblDyeingOrdersMainDetail>(); if (DyeingOrderMainDetailList != null) { foreach (var item in DyeingOrderMainDetailList) { mainDetails.Add(DyeingMapper.DbMapToDyeingorderMainDetail(item)); } } _webService.SaveDyeingOrderAsync(header, mainDetails); }