public void GetLocations()
        {
            List <Location> list = _repository.GetLocations();

            if (list != null && list.Count > 0)
            {
                _locations = list;
            }
        }