Esempio n. 1
0
        public async Task <ActionResult> DeleteAddress(AddressModel um)
        {
            try
            {
                var result = await _addressrepositoy.DeleteUserAddress(um.A_Id);

                return(new JsonResult(result));
            }
            catch (Exception ex)
            {
                _logger.LogError("Erro in user controller", ex);
                return(new JsonResult(ResponseModel.ServerInternalError(data: ex)));
            }
        }