Example #1
0
 //cr (circular reference)
 ////public CategoryModel(ICustomFieldModel customFieldModel, IBaseContextModel contextModel, IExternalIdModel externalIdModel, IWebhookModel webHookModel, ICategoryAssignmentModel categoryAssignment, ICategorySetModel categorySetModel, IOptions<Sheev.Common.Models.MongoDbSetting> mongoDbSettings, IOptions<Sheev.Common.Models.ApiUrlSetting> apiSettings)
 public CategoryModel(ICategoryAssignmentModel categoryAssignment, ICustomFieldModel customFieldModel, IBaseContextModel contextModel, IExternalIdModel externalIdModel, IWebhookModel webHookModel, ICategorySetModel categorySetModel, IOptions <Sheev.Common.Models.MongoDbSetting> mongoDbSettings, IOptions <Sheev.Common.Models.ApiUrlSetting> apiSettings)
 {
     context = contextModel;
     /////context = new Models.ContextModel(mongoDbSettings, apiSettings);
     _categoryCollection = contextModel.Database.GetCollection <Deathstar.Data.Models.PC_Category>("PC_Category");
     _categorySetModel   = categorySetModel;
     _categoryAssignment = categoryAssignment;
     _webHookModel       = webHookModel;
     _externalIdModel    = externalIdModel;
     _customFieldModel   = customFieldModel;
 }
 public CategorySetController(ICategorySetModel categorySet, ILoggerManager logger, IOptions <Sheev.Common.Models.MongoDbSetting> mongoDbSettings, IOptions <Sheev.Common.Models.ApiUrlSetting> apiSettings)
 {
     _context     = new Models.ContextModel(mongoDbSettings, apiSettings, logger);
     _categorySet = categorySet;
 }