Exemplo n.º 1
0
        public static IOBalanceEntity.ProductLog DtoToEntity(this ProductLogDto dto)
        {
            IOBalanceEntity.ProductLog entity = null;

            if (!dto.IsNull())
            {
                entity = new IOBalanceEntity.ProductLog
                {
                    RecID      = dto.RecId,
                    ProductID  = dto.ProductId,
                    Quantity   = dto.Quantity,
                    Price      = dto.Price,
                    UnitID     = dto.UnitID,
                    CategoryID = dto.CategoryID
                };
            }

            return(entity);
        }
Exemplo n.º 2
0
 private bool SaveProductLog(ProductLogDto dto)
 {
     return(true);
 }