Exemplo n.º 1
0
        public virtual ApiVenueResponseModel MapBOToModel(
            BOVenue boVenue)
        {
            var model = new ApiVenueResponseModel();

            model.SetProperties(boVenue.Id, boVenue.Address1, boVenue.Address2, boVenue.AdminId, boVenue.Email, boVenue.Facebook, boVenue.Name, boVenue.Phone, boVenue.ProvinceId, boVenue.Website);

            return(model);
        }
Exemplo n.º 2
0
        public virtual BOVenue MapEFToBO(
            Venue ef)
        {
            var bo = new BOVenue();

            bo.SetProperties(
                ef.Id,
                ef.Address1,
                ef.Address2,
                ef.AdminId,
                ef.Email,
                ef.Facebook,
                ef.Name,
                ef.Phone,
                ef.ProvinceId,
                ef.Website);
            return(bo);
        }
Exemplo n.º 3
0
        public virtual Venue MapBOToEF(
            BOVenue bo)
        {
            Venue efVenue = new Venue();

            efVenue.SetProperties(
                bo.Address1,
                bo.Address2,
                bo.AdminId,
                bo.Email,
                bo.Facebook,
                bo.Id,
                bo.Name,
                bo.Phone,
                bo.ProvinceId,
                bo.Website);
            return(efVenue);
        }
Exemplo n.º 4
0
        public virtual BOVenue MapModelToBO(
            int id,
            ApiVenueRequestModel model
            )
        {
            BOVenue boVenue = new BOVenue();

            boVenue.SetProperties(
                id,
                model.Address1,
                model.Address2,
                model.AdminId,
                model.Email,
                model.Facebook,
                model.Name,
                model.Phone,
                model.ProvinceId,
                model.Website);
            return(boVenue);
        }