コード例 #1
0
        public ActionResult Delete(string phoneno)
        {
            var item = _address.GetAddressByPhoneNo(phoneno);

            if (item == null)
            {
                return(NotFound());
            }

            _address.DeleteAddress(item);
            _address.SaveChanges();
            return(Ok());
        }
コード例 #2
0
 //删除地理信息
 public int DeleteAddressInfo(string addressID)
 {
     return(dal.DeleteAddress(addressID));
 }
コード例 #3
0
        public async Task <JsonResult> Delete(Guid id)
        {
            await _address.DeleteAddress(id);

            return(Json(new object[] { new object() }, JsonRequestBehavior.AllowGet));
        }