Example #1
0
        public virtual ApiAirlineResponseModel MapBOToModel(
            BOAirline boAirline)
        {
            var model = new ApiAirlineResponseModel();

            model.SetProperties(boAirline.Id, boAirline.Name);

            return(model);
        }
Example #2
0
        public virtual BOAirline MapEFToBO(
            Airline ef)
        {
            var bo = new BOAirline();

            bo.SetProperties(
                ef.Id,
                ef.Name);
            return(bo);
        }
Example #3
0
        public virtual Airline MapBOToEF(
            BOAirline bo)
        {
            Airline efAirline = new Airline();

            efAirline.SetProperties(
                bo.Id,
                bo.Name);
            return(efAirline);
        }
Example #4
0
        public virtual BOAirline MapModelToBO(
            int id,
            ApiAirlineRequestModel model
            )
        {
            BOAirline boAirline = new BOAirline();

            boAirline.SetProperties(
                id,
                model.Name);
            return(boAirline);
        }