Example #1
0
        public async Task Create(EOrderItem orderItem, int createdBy)
        {
            DynamicParameters parameter = new DynamicParameters();

            parameter.Add("@OrderName", orderItem.OrderName);
            parameter.Add("@CreatedBy", createdBy);

            await Query(parameter, "[dbo].[OrderItemCreate]");
        }
Example #2
0
        public async Task Update(EOrderItem orderItem, int updatedBy)
        {
            DynamicParameters parameter = new DynamicParameters();

            parameter.Add("@OrderItemId", orderItem.OrderItemId);
            parameter.Add("@OrderName", orderItem.OrderName);
            parameter.Add("@UpdatedBy", updatedBy);

            await Query(parameter, "[dbo].[OrderItemUpdate]");
        }
Example #3
0
        private OrderItem OrderItem(EOrderItem eOrderItem)
        {
            return(new OrderItem
            {
                CreatedDate = eOrderItem.CreatedDate,
                UpdatedDate = eOrderItem.UpdatedDate,

                CreatedBy = eOrderItem.CreatedBy,
                OrderItemId = eOrderItem.OrderItemId,
                UpdatedBy = eOrderItem.UpdatedBy,

                OrderName = eOrderItem.OrderName,
            });
        }