Last active
August 29, 2015 13:57
-
-
Save cerkit/9769082 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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