using System.Dynamic; using System.Threading.Tasks; namespace Novaloop.PaymoApi.Shared { public interface IBaseApi { string ResourceUri { get; set; } /// /// Receive all entities /// Task GetAll(); /// /// Retrieve an existing entity /// /// id of the entity /// Task Get(int entityId); /// /// Create a new entity /// Task Create( TCreatType entity); /// /// Delete an entity /// /// id of the entity /// Task Delete(int entityId); /// /// Update an entity /// /// entity information to update the entity with /// id of the entity to update /// Task Update(ExpandoObject entity, int id); } }