public void Update(OAEmployeeInputDto input) { var ret = _oaEmployeeRepository.Get(input.Id.Value); ret = input.MapTo(ret); _oaEmployeeRepository.Update(ret); }
public InitWorkFlowOutput Create(OAEmployeeInputDto input) { var model = input.MapTo <OAEmployee>(); model.Status = 0; var ret = _oaEmployeeRepository.InsertOrUpdate(model); return(new InitWorkFlowOutput() { InStanceId = ret.Id.ToString() }); }