public virtual ApiEventResponseModel MapBOToModel(
            BOEvent boEvent)
        {
            var model = new ApiEventResponseModel();

            model.SetProperties(boEvent.Id, boEvent.Address1, boEvent.Address2, boEvent.CityId, boEvent.Date, boEvent.Description, boEvent.EndDate, boEvent.Facebook, boEvent.Name, boEvent.StartDate, boEvent.Website);

            return(model);
        }
        public virtual BOEvent MapEFToBO(
            Event ef)
        {
            var bo = new BOEvent();

            bo.SetProperties(
                ef.Id,
                ef.Address1,
                ef.Address2,
                ef.CityId,
                ef.Date,
                ef.Description,
                ef.EndDate,
                ef.Facebook,
                ef.Name,
                ef.StartDate,
                ef.Website);
            return(bo);
        }
        public virtual Event MapBOToEF(
            BOEvent bo)
        {
            Event efEvent = new Event();

            efEvent.SetProperties(
                bo.Address1,
                bo.Address2,
                bo.CityId,
                bo.Date,
                bo.Description,
                bo.EndDate,
                bo.Facebook,
                bo.Id,
                bo.Name,
                bo.StartDate,
                bo.Website);
            return(efEvent);
        }
        public virtual BOEvent MapModelToBO(
            int id,
            ApiEventRequestModel model
            )
        {
            BOEvent boEvent = new BOEvent();

            boEvent.SetProperties(
                id,
                model.Address1,
                model.Address2,
                model.CityId,
                model.Date,
                model.Description,
                model.EndDate,
                model.Facebook,
                model.Name,
                model.StartDate,
                model.Website);
            return(boEvent);
        }