Exemplo n.º 1
0
        public static void Delete(Guid userID)
        {
            // first check if we have the right to delete that user - authorization

            UserAddressRepository.Delete(userID);
            UserRepository.Delete(userID);
        }
Exemplo n.º 2
0
 public ActionResult AddressRemove(string id)
 {
     if (id != null)
     {
         var uar = new UserAddressRepository();
         uar.Delete(id);
         return(RedirectToAction("Index"));
     }
     return(View("Error"));
 }