Skip to content

Instantly share code, notes, and snippets.

@karthikeyanVK
Last active February 14, 2020 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karthikeyanVK/3e5a8df811b61fcff072e37a3e1e618d to your computer and use it in GitHub Desktop.
Save karthikeyanVK/3e5a8df811b61fcff072e37a3e1e618d to your computer and use it in GitHub Desktop.
using System.Collections.Generic;
using System.Threading.Tasks;
namespace PetShop.DBAccess.CosmosDB
{
public interface ICosmosDbService
{
Task AddItemAsync<T>(T item, string id);
Task<T> GetItemAsync<T>(string id);
Task<IEnumerable<T>> GetItemsAsync<T>(string queryString);
Task UpdateItemAsync<T>(string id, T item);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment