コード例 #1
0
ファイル: CommonBusiness.cs プロジェクト: tvmindia/TVMWPty052
 public CommonBusiness(IAttributesRepository attributesRepository)
 {
     _attributesRepository = attributesRepository;
     try
     {
         UA uaObj = null;
         if (HttpContext.Current.Session == null)
         {
             //For Mobile
             uaObj          = new UA();
             uaObj.UserName = "******";
             uaObj.DateTime = GetCurrentDateTime();
         }
         else
         {
             if (HttpContext.Current.Session["TvmValid"] != null)
             {
                 uaObj          = (UA)HttpContext.Current.Session["TvmValid"];
                 uaObj.DateTime = GetCurrentDateTime();
             }
         }
         //this code is temporary arrangement
         //must replace...!
         _uaObj = uaObj;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #2
0
 public QuotationsBusiness(IQuotationsRepository QuatationsRepository, IAttributesRepository attributesRepository, IMailBusiness mailBusiness, ICommonBusiness commonBusiness)
 {
     _QuotationsRepository = QuatationsRepository;
     _attributesRepository = attributesRepository;
     _mailBusiness         = mailBusiness;
     _commonBusiness       = commonBusiness;
 }
コード例 #3
0
 public Cart_WishlistBusiness(ICart_WishlistRepository cartWishlistRepository, ICommonBusiness commonBusiness, IAttributesRepository attributesRepository)
 {
     _cartWishlistRepository = cartWishlistRepository;
     _commonBusiness         = commonBusiness;
     _attributesRepository   = attributesRepository;
 }
コード例 #4
0
 public AttributesController(IAttributesRepository AttributesRepo, ILoggerFactory loggerFactory)
 {
     _AttributesRepo = AttributesRepo;
     _loggerFactory  = loggerFactory;
 }
コード例 #5
0
 /// <summary>
 /// Constructor Injection:-Getting IDatabaseFactory implemented object
 /// </summary>
 /// <param name="databaseFactory"></param>
 public Cart_WishlistRepository(IDatabaseFactory databaseFactory, IAttributesRepository attributesRepository)
 {
     _databaseFactory      = databaseFactory;
     _attributesRepository = attributesRepository;
 }
コード例 #6
0
 public AttributesBusiness(IAttributesRepository attributeRepository)
 {
     _attributesRepository = attributeRepository;
 }
コード例 #7
0
 /// <summary>
 /// Constructor Injection:-Getting IDatabaseFactory implemented object
 /// </summary>
 /// <param name="databaseFactory"></param>
 public BookingsRepository(IDatabaseFactory databaseFactory, IAttributesRepository attributesRepository)
 {
     _databaseFactory      = databaseFactory;
     _attributesRepository = attributesRepository;
 }
コード例 #8
0
 public AttributeManager(IAttributesRepository attributesRepository)
 {
     _attributesRepository = attributesRepository;
 }
コード例 #9
0
 public ReviewRepository(IDatabaseFactory databaseFactory, IAttributesRepository attributesRepository)
 {
     _databaseFactory      = databaseFactory;
     _attributesRepository = attributesRepository;
 }
コード例 #10
0
 /// <summary>
 /// Constructor Injection:-Getting IDatabaseFactory implemented object
 /// </summary>
 /// <param name="databaseFactory"></param>
 public QuotationsRepository(IDatabaseFactory databaseFactory, IAttributesRepository attributesRepository)
 {
     _databaseFactory      = databaseFactory;
     _attributesRepository = attributesRepository;
 }