Esempio n. 1
0
        public virtual ApiEventStatusResponseModel MapBOToModel(
            BOEventStatus boEventStatus)
        {
            var model = new ApiEventStatusResponseModel();

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

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

            bo.SetProperties(
                ef.Id,
                ef.Name);
            return(bo);
        }
Esempio n. 3
0
        public virtual EventStatus MapBOToEF(
            BOEventStatus bo)
        {
            EventStatus efEventStatus = new EventStatus();

            efEventStatus.SetProperties(
                bo.Id,
                bo.Name);
            return(efEventStatus);
        }
Esempio n. 4
0
        public virtual BOEventStatus MapModelToBO(
            int id,
            ApiEventStatusRequestModel model
            )
        {
            BOEventStatus boEventStatus = new BOEventStatus();

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