public void Delete(string id) { if (id == null) { throw new ArgumentNullException("id"); } WebApiHelper.Delete(_memberAddressUrl + "/" + id); }
public async Task <ActionResult> DeleteConfirmed(Guid id) { try { IWebApiHelper webapi = new WebApiHelper("section", false); await webapi.Delete <Section>(id.ToString()); } catch { ViewBag.Message = "Cannot delete this record"; } return(RedirectToAction("Index")); }