public static async Task <BodyExercise> GetAsync(WebApiWrapper webApiWrapper, string userId, Cookie cookie, BodyExerciseKey key) { Dictionary <string, string> datas = new Dictionary <string, string>(); datas.Add("Id", key.Id.ToString()); return(await webApiWrapper.HttpClientPoolManager.GetAsync <BodyExercise>(userId, cookie, _baseUrl + "Get", datas)); }
public static async Task <bool> DeleteAsync(WebApiWrapper webApiWrapper, string userId, Cookie cookie, BodyExerciseKey key) { return(await webApiWrapper.HttpClientPoolManager.PostAsync <BodyExerciseKey, bool>(userId, cookie, _baseUrl + "Delete", key)); }
public static async Task <List <BodyExercise> > UpdateListAsync(WebApiWrapper webApiWrapper, string userId, Cookie cookie, List <BodyExercise> bodyExercices) { return(await webApiWrapper.HttpClientPoolManager.PostAsync <List <BodyExercise>, List <BodyExercise> >(userId, cookie, _baseUrl + "UpdateList", bodyExercices)); }
public static async Task <BodyExercise> UpdateAsync(WebApiWrapper webApiWrapper, string userId, Cookie cookie, BodyExercise bodyExercice) { return(await webApiWrapper.HttpClientPoolManager.PostAsync <BodyExercise, BodyExercise>(userId, cookie, _baseUrl + "Update", bodyExercice)); }
public static async Task <List <BodyExercise> > FindAsync(WebApiWrapper webApiWrapper, string userId, Cookie cookie) { return(await webApiWrapper.HttpClientPoolManager.GetAsync <List <BodyExercise> >(userId, cookie, _baseUrl + "Find")); }