public async Task <IDataResult <LocationDetailsDto> > GetLocationDetailsDtoByIdAsync(int locationId)
        {
            var location = await _locationDao.GetAsync(l => l.Id == locationId);

            var locAddress = await _addressDao.GetAsync(a => a.Id == location.AddressId);

            var locationDetailsDto = new LocationDetailsDto
            {
                LocationId         = location.Id,
                LocationCode       = location.Code,
                LocationName       = location.Name,
                LocationTypeId     = location.LocationTypeId,
                LocationTypeName   = location.LocationTypeId.ToString(),
                IsInternalLocation = location.IsInternalLocation,
                IsReturnLocation   = location.IsReturnLocation,
                IsScrapLocation    = location.IsScrapLocation,
                AddressId          = locAddress.Id,
                AddressTitle       = locAddress.Title
            };

            return(new SuccessDataResult <LocationDetailsDto>(locationDetailsDto));
        }
        public async Task <IDataResult <Address> > GetByIdAsync(int id)
        {
            var address = await _addressDao.GetAsync(a => a.Id == id);

            return(new SuccessDataResult <Address>(address));
        }