public static void Delete(Guid userID) { // first check if we have the right to delete that user - authorization UserAddressRepository.Delete(userID); UserRepository.Delete(userID); }
public ActionResult AddressRemove(string id) { if (id != null) { var uar = new UserAddressRepository(); uar.Delete(id); return(RedirectToAction("Index")); } return(View("Error")); }