public DataTransfer<PutOutput> Update(PutInput Input) { DataTransfer<PutOutput> transer = new DataTransfer<PutOutput>(); SystemProcessThread systemprocessthreadinput = new SystemProcessThread(); SystemProcessThread systemprocessthreadoutput = new SystemProcessThread(); PutOutput output = new PutOutput(); systemprocessthreadinput.CopyFrom(Input); SystemProcessThread systemprocessthread = _iSystemProcessThreadRepository.GetSystemProcessThread(systemprocessthreadinput.SystemProcessThreadId); if (systemprocessthread != null) { systemprocessthreadoutput = _iSystemProcessThreadRepository.UpdateSystemProcessThread(systemprocessthreadinput); if (systemprocessthreadoutput != null) { output.CopyFrom(systemprocessthreadoutput); transer.IsSuccess = true; transer.Data = output; } else { transer.IsSuccess = false; transer.Errors = new string[1]; transer.Errors[0] = "Error: Could not update."; } } else { transer.IsSuccess = false; transer.Errors = new string[1]; transer.Errors[0] = "Error: Record not found."; } return transer; }