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