Esempio n. 1
0
        public virtual ApiLocationResponseModel MapBOToModel(
            BOLocation boLocation)
        {
            var model = new ApiLocationResponseModel();

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

            return(model);
        }
Esempio n. 2
0
        public virtual BOLocation MapEFToBO(
            Location ef)
        {
            var bo = new BOLocation();

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

            efLocation.SetProperties(
                bo.GpsLat,
                bo.GpsLong,
                bo.LocationId,
                bo.LocationName);
            return(efLocation);
        }
Esempio n. 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);
        }