Ejemplo n.º 1
0
 public void Delete(string id)
 {
     if (id == null)
     {
         throw new ArgumentNullException("id");
     }
     WebApiHelper.Delete(_memberAddressUrl + "/" + id);
 }
Ejemplo n.º 2
0
 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"));
 }