public static ApiCallResponse Insert(TFolder folder, ParaCredentials creds) { var doc = XmlGenerator.GenerateXml(folder); var ar = ApiCallFactory.ObjectCreateUpdate <TFolder>(creds, doc, 0); folder.Id = ar.Id; return(ar); }
public static ApiCallResponse Insert <TEntity>(TEntity entity, ParaCredentials paraCredentials) where TEntity : ParaEntity, new() { var doc = XmlGenerator.GenerateXml(entity); var ar = ApiCallFactory.ObjectCreateUpdate <TEntity>(paraCredentials, doc, 0); entity.Id = ar.Id; return(ar); }
public static ApiCallResponse Update(TFolder folder, ParaCredentials creds) { var ar = ApiCallFactory.ObjectCreateUpdate <TFolder>(creds, XmlGenerator.GenerateXml(folder), folder.Id); return(ar); }
public static ApiCallResponse Update <TEntity>(TEntity entity, ParaCredentials paraCredentials) where TEntity : ParaEntity, new() { var ar = ApiCallFactory.ObjectCreateUpdate <TEntity>(paraCredentials, XmlGenerator.GenerateXml(entity), entity.Id); return(ar); }