Esempio n. 1
0
        public virtual BOTransactionStatus MapEFToBO(
            TransactionStatus ef)
        {
            var bo = new BOTransactionStatus();

            bo.SetProperties(
                ef.Id,
                ef.Name);
            return(bo);
        }
        public virtual BOTransactionStatus MapModelToBO(
            int id,
            ApiTransactionStatusRequestModel model
            )
        {
            BOTransactionStatus boTransactionStatus = new BOTransactionStatus();

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