Beispiel #1
0
        public virtual ApiScrapReasonResponseModel MapBOToModel(
            BOScrapReason boScrapReason)
        {
            var model = new ApiScrapReasonResponseModel();

            model.SetProperties(boScrapReason.ScrapReasonID, boScrapReason.ModifiedDate, boScrapReason.Name);

            return(model);
        }
        public virtual BOScrapReason MapEFToBO(
            ScrapReason ef)
        {
            var bo = new BOScrapReason();

            bo.SetProperties(
                ef.ScrapReasonID,
                ef.ModifiedDate,
                ef.Name);
            return(bo);
        }
        public virtual ScrapReason MapBOToEF(
            BOScrapReason bo)
        {
            ScrapReason efScrapReason = new ScrapReason();

            efScrapReason.SetProperties(
                bo.ModifiedDate,
                bo.Name,
                bo.ScrapReasonID);
            return(efScrapReason);
        }
Beispiel #4
0
        public virtual BOScrapReason MapModelToBO(
            short scrapReasonID,
            ApiScrapReasonRequestModel model
            )
        {
            BOScrapReason boScrapReason = new BOScrapReason();

            boScrapReason.SetProperties(
                scrapReasonID,
                model.ModifiedDate,
                model.Name);
            return(boScrapReason);
        }