/// <inheritdoc />
        public virtual async Task UpdateOnlineAsync(T item)
        {
            await InitializeStore().ContinueOnAnyContext();

            await OnlineTable.UpdateAsync(item).ContinueOnAnyContext();

            await SyncAsync().ContinueOnAnyContext();
        }
        /// <inheritdoc />
        public virtual async Task RemoveOnlineAsync(T item)
        {
            await InitializeStore().ContinueOnAnyContext();
            await PullLatestAsync().ContinueOnAnyContext();

            await OnlineTable.DeleteAsync(item).ContinueOnAnyContext();

            await SyncAsync().ContinueOnAnyContext();
        }
 public ActionResult Post([FromBody] OnlineTable onlineTable)
 {
     try
     {
         context.OnlineTable.Add(onlineTable);
         context.SaveChanges();
         return(Ok());
     }catch (Exception ex)
     {
         return(BadRequest());
     }
 }
 public ActionResult Put(int id, [FromBody] OnlineTable onlineTable)
 {
     if (onlineTable.Id == id)
     {
         context.Entry(onlineTable).State = EntityState.Modified;
         context.SaveChanges();
         return(Ok());
     }
     else
     {
         return(BadRequest());
     }
 }