public ActionResult <IEnumerable <AddressReadDto> > GetAll()
        {
            var addresses = _addressService.GetAll();

            return(Ok(_mapper.Map <IEnumerable <AddressReadDto> >(addresses)));
        }
Exemplo n.º 2
0
        public virtual ActionResult Index()
        {
            var list = _address.GetAll();

            return(View(list));
        }