} // Insert public SetByGuidResponse SetByGuid(SetByGuidRequest request) { SetByGuidResponse response = new SetByGuidResponse(); try { IsExistByGuidResponse isExistByGuidResponse = IsExistByGuid(new IsExistByGuidRequest() { Guid = request.Guid }); if (isExistByGuidResponse.Result.Success()) { UpdateByGuidResponse updateByGuidResponse = UpdateByGuid( new UpdateByGuidRequest() { Guid = request.Guid , Ac4yPersistentChild = request.Ac4yPersistentChild }); response.Result = updateByGuidResponse.Result; } else { InsertResponse insertResponse = Insert( new InsertRequest() { Ac4yPersistentChild = request.Ac4yPersistentChild }); response.Result = insertResponse.Result; } } catch (Exception exception) { response.Result = (new Ac4yProcessResult() { Code = Ac4yProcessResult.FAIL, Message = exception.Message, Description = exception.StackTrace }); } return(response); } // SetByGuid
public SetByGuidResponse SetByGuid(SetByGuidRequest request) { return new Ac4yPersistentChildEFService().SetByGuid(request); } } // Ac4yPersistentChildController