public void Update(OAPettyCashInputDto input) { var ret = _oaPettyCashRepository.Get(input.Id.Value); ret = input.MapTo(ret); _oaPettyCashRepository.Update(ret); }
public InitWorkFlowOutput Create(OAPettyCashInputDto input) { var model = input.MapTo <OAPettyCash>(); model.Status = 0; _oaPettyCashRepository.Insert(model); return(new InitWorkFlowOutput() { InStanceId = model.Id.ToString() }); }