public async Task <ActionResult> Delete(ArticleEntity article) { using (var client = new AuthenticatedClient()) { var response = await client.DeleteAsync("/services/articles/" + article.ArticleId); return(RedirectToAction("Index")); } }
public async Task <ActionResult> Delete(StoreEntity store) { using (var client = new AuthenticatedClient()) { var response = await client.DeleteAsync("/services/stores/" + store.StoreId); return(RedirectToAction("Index")); } }