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