public BasicDocumentAction BuildDeleteAction(ICloudSearchDocument document, ActionType actionType, int version) { string type = ActionTypeFunction.ActionTypeToString(actionType); return(new BasicDocumentAction { type = type, id = document.Id, version = version }); }
public AddUpdateBasicDocumentAction <T> BuildAction(T document, ActionType actionType, int version) { string type = ActionTypeFunction.ActionTypeToString(actionType); return(new AddUpdateBasicDocumentAction <T> { type = type, id = document.Id, lang = "en", fields = document, version = version }); }