public async Task <Sohistory> PrepareUpdateWOHistory(Sohistory sohistory, WOHistoryModel model) { sohistory.Sostatus = model.Sostatus; sohistory.Sodate = model.Sodate; sohistory.Sogl = model.Sogl; sohistory.AssetName = model.AssetName; sohistory.AssetModel = model.AssetModel; sohistory.AssetSerialNo = model.AssetSerialNo; sohistory.Sofor = model.Sofor; sohistory.Soinstructions = model.Soinstructions; sohistory.SopriceLabor = model.SopriceLabor; sohistory.SopriceParts = model.SopriceParts; sohistory = await _soRepository.UpdateAsync(sohistory); return(sohistory); }
public async Task DeleteSoHistory(Sohistory sohistory) { await _soRepository.DeleteAsync(sohistory); }