示例#1
0
        private static string GetProductStatus(DealProduct dealProduct)
        {
            var deal = dealProduct.Deal;
            if (deal.Status.ActionName != COATStatusValue.Approved)
                return deal.Status.Name;

            return dealProduct.IsActive ? "Approve" : "Reject";
        }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the DealProducts EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDealProducts(DealProduct dealProduct)
 {
     base.AddObject("DealProducts", dealProduct);
 }
示例#3
0
 /// <summary>
 /// Create a new DealProduct object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="dealId">Initial value of the DealId property.</param>
 /// <param name="productName">Initial value of the ProductName property.</param>
 /// <param name="price">Initial value of the Price property.</param>
 /// <param name="isActive">Initial value of the IsActive property.</param>
 public static DealProduct CreateDealProduct(global::System.Int32 id, global::System.String dealId, global::System.String productName, global::System.Double price, global::System.Boolean isActive)
 {
     DealProduct dealProduct = new DealProduct();
     dealProduct.Id = id;
     dealProduct.DealId = dealId;
     dealProduct.ProductName = productName;
     dealProduct.Price = price;
     dealProduct.IsActive = isActive;
     return dealProduct;
 }