public ActionResult Delete(string phoneno) { var item = _address.GetAddressByPhoneNo(phoneno); if (item == null) { return(NotFound()); } _address.DeleteAddress(item); _address.SaveChanges(); return(Ok()); }
//删除地理信息 public int DeleteAddressInfo(string addressID) { return(dal.DeleteAddress(addressID)); }
public async Task <JsonResult> Delete(Guid id) { await _address.DeleteAddress(id); return(Json(new object[] { new object() }, JsonRequestBehavior.AllowGet)); }