Exemple #1
0
        public virtual ApiLocationResponseModel MapBOToModel(
            BOLocation boLocation)
        {
            var model = new ApiLocationResponseModel();

            model.SetProperties(boLocation.LocationId, boLocation.GpsLat, boLocation.GpsLong, boLocation.LocationName);

            return(model);
        }
Exemple #2
0
        public virtual BOLocation MapEFToBO(
            Location ef)
        {
            var bo = new BOLocation();

            bo.SetProperties(
                ef.LocationId,
                ef.GpsLat,
                ef.GpsLong,
                ef.LocationName);
            return(bo);
        }
Exemple #3
0
        public virtual Location MapBOToEF(
            BOLocation bo)
        {
            Location efLocation = new Location();

            efLocation.SetProperties(
                bo.GpsLat,
                bo.GpsLong,
                bo.LocationId,
                bo.LocationName);
            return(efLocation);
        }
Exemple #4
0
        public virtual BOLocation MapModelToBO(
            int locationId,
            ApiLocationRequestModel model
            )
        {
            BOLocation boLocation = new BOLocation();

            boLocation.SetProperties(
                locationId,
                model.GpsLat,
                model.GpsLong,
                model.LocationName);
            return(boLocation);
        }