public virtual ApiUnitMeasureResponseModel MapBOToModel(
            BOUnitMeasure boUnitMeasure)
        {
            var model = new ApiUnitMeasureResponseModel();

            model.SetProperties(boUnitMeasure.UnitMeasureCode, boUnitMeasure.ModifiedDate, boUnitMeasure.Name);

            return(model);
        }
        public virtual BOUnitMeasure MapEFToBO(
            UnitMeasure ef)
        {
            var bo = new BOUnitMeasure();

            bo.SetProperties(
                ef.UnitMeasureCode,
                ef.ModifiedDate,
                ef.Name);
            return(bo);
        }
        public virtual UnitMeasure MapBOToEF(
            BOUnitMeasure bo)
        {
            UnitMeasure efUnitMeasure = new UnitMeasure();

            efUnitMeasure.SetProperties(
                bo.ModifiedDate,
                bo.Name,
                bo.UnitMeasureCode);
            return(efUnitMeasure);
        }
        public virtual BOUnitMeasure MapModelToBO(
            string unitMeasureCode,
            ApiUnitMeasureRequestModel model
            )
        {
            BOUnitMeasure boUnitMeasure = new BOUnitMeasure();

            boUnitMeasure.SetProperties(
                unitMeasureCode,
                model.ModifiedDate,
                model.Name);
            return(boUnitMeasure);
        }