public string SaveProductDetails(string product, int UserID, string reOderDetails)
        {
            try
            {
                if (!Utility.CommonUtility.CheckUserAuthenticated())
                    return "fail";

                ProductMasterBLL ObjProductMasterBLL = (ProductMasterBLL)Newtonsoft.Json.JsonConvert.DeserializeObject(product, typeof(ProductMasterBLL));
                ReOrderDetailsBLL ObjReOrderDetailsBLL = (ReOrderDetailsBLL)Newtonsoft.Json.JsonConvert.DeserializeObject(reOderDetails, typeof(ReOrderDetailsBLL));

                ProductMasterBLL productMasterBLL = new ProductMasterBLL(ObjProductMasterBLL.ProductID);

                productMasterBLL.ProductCompanyID = ObjProductMasterBLL.ProductCompanyID;
                productMasterBLL.VendorID = ObjProductMasterBLL.VendorID;
                productMasterBLL.ProductSizeID = ObjProductMasterBLL.ProductSizeID;
                productMasterBLL.ProductColorID = ObjProductMasterBLL.ProductColorID;
                productMasterBLL.ProductCategoryID = ObjProductMasterBLL.ProductCategoryID;
                productMasterBLL.ProductForID = ObjProductMasterBLL.ProductForID;
                productMasterBLL.Name = ObjProductMasterBLL.Name;
                productMasterBLL.Descryption = ObjProductMasterBLL.Descryption;
                productMasterBLL.ShortCode = ObjProductMasterBLL.ShortCode;
                productMasterBLL.Quantity = ObjProductMasterBLL.Quantity;
                productMasterBLL.TotalPrice = ObjProductMasterBLL.TotalPrice;
                productMasterBLL.PurchasePrice = ObjProductMasterBLL.PurchasePrice;
                productMasterBLL.MRP = ObjProductMasterBLL.MRP;
                productMasterBLL.Discount = ObjProductMasterBLL.Discount;

                if (productMasterBLL.ProductID == 0)
                 {
                     productMasterBLL.CreatedOn = DateTime.Now;
                     productMasterBLL.CreatedBy = UserID;
                 }
                productMasterBLL.UpdatedOn = DateTime.Now;
                productMasterBLL.UpdatedBy = UserID;
                productMasterBLL.AddProduct(ObjReOrderDetailsBLL.VendorID, ObjReOrderDetailsBLL.Quantity,
                    ObjReOrderDetailsBLL.MinimumQuntity, true);

                return productMasterBLL.ToString();
            }
            catch (Exception ex)
            {
                //ValuePad.Utility.CommonUtility.SendErrorMail(ex);
                return "fail";
            }
        }