Skip to content

Instantly share code, notes, and snippets.

@cerkit
Last active August 29, 2015 13:57
Show Gist options
  • Save cerkit/9769082 to your computer and use it in GitHub Desktop.
Save cerkit/9769082 to your computer and use it in GitHub Desktop.
using PortableClient.WebApi.Dal.Interfaces;
using RecordKeeper.Portable.Models;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace PortableClient.WebApi.Dal.Services
{
public class AlbumFormatService : IEntityService<AlbumFormat>
{
private static readonly string API_PATH = "AlbumFormat";
public async Task<IEnumerable<AlbumFormat>> Get(System.Net.ICredentials credentials = null)
{
return await EntityService<AlbumFormat>.Get(API_PATH, credentials);
}
public async Task<AlbumFormat> Get(string id, System.Net.ICredentials credentials = null)
{
return await EntityService<AlbumFormat>.Get(API_PATH, id, credentials);
}
public async void Update(AlbumFormat entity, System.Net.ICredentials credentials = null)
{
EntityService<AlbumFormat>.Update(API_PATH, entity, credentials);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment