Example #1
0
        public ApiResponse <List <CustomerAddressDetails> > ShowAddresses()
        {
            var deviceNo = GetDeviceNo();
            var listData = _customerServices.GetAddresses(deviceNo);

            if (listData != null && listData.Count > 0)
            {
                return(ApiUtility.ApiSuccess <List <CustomerAddressDetails> >(listData, "all addresses get successfully"));
            }
            else
            {
                return(ApiUtility.ApiSuccess <List <CustomerAddressDetails> >(null, "Failed !!!"));
            }
        }