public async Task <sr <int> > Save(SlideDeck slideDeck) { // TODO: add user to set author slideDeck.AuthorId = 1; return(await _base.Post <SlideDeck, int>("api/slideDeck", slideDeck)); }
public async Task <sr <UserAvatar> > Save(UserAvatar userAvatar) { var response = await _base.Post <UserAvatar, int>("api/userAvatar", userAvatar); if (response.Success) { userAvatar.Id = response.Data; return(sr <UserAvatar> .GetSuccess(userAvatar)); } return(sr <UserAvatar> .Get(response.Message)); }
public async Task <sr <int> > Save(BlogPost slideDeck) { // TODO: add user to set author slideDeck.AuthorId = 1; return(await _base.Post <BlogPost, int>("api/blog", slideDeck)); }
public async Task <sr <UserAccessSlideDeckProgram> > PostToUserAvatar(UserAccessSlideDeckProgram ua) { return(await _base.Post <UserAccessSlideDeckProgram, UserAccessSlideDeckProgram>($"api/UserAccessSlideDeckProgram", ua)); }
public async Task <sr <int> > Save(SlideDeckProgram slideDeckProgram) { // TODO: add user to set author slideDeckProgram.AuthorId = 1; return(await _base.Post <SlideDeckProgram, int>("api/slideDeckProgram", slideDeckProgram)); }
public async Task <sr <CompletedSlideDeckProgram> > Save(CompletedSlideDeckProgram completedProgram) { return(await _base.Post <CompletedSlideDeckProgram, CompletedSlideDeckProgram>("api/CompletedSlideDeckProgram", completedProgram)); }