protected async Task DeleteNeed(string ID) { await Http1.DeleteAsync("api/Need/Delete/" + ID); this.isDelete = false; await GetNeed(); }
protected async Task EditNeed(string ID) { need = await Http1.GetJsonAsync <Need>("/api/Need/Details/" + ID); this.modalTitle = "Edit Need"; this.isAdd = true; }
protected async Task SaveNeed() { if (need.Id != null) { await Http1.SendJsonAsync(HttpMethod.Put, "api/Need/Edit", need); } else { await Http1.SendJsonAsync(HttpMethod.Post, "/api/Need/Create", need); } this.isAdd = false; await GetNeed(); }
protected async Task DeleteConfirm(string ID) { need = await Http1.GetJsonAsync <Need>("/api/Need/Details/" + ID); this.isDelete = true; }
protected async Task GetRatings() { ratingList = await Http1.GetJsonAsync <List <Ratings> >("api/Need/GetRatings"); }
protected async Task GetNeed() { needList = await Http1.GetJsonAsync <List <Need> >("api/Need/Index1"); }