public FilmsController(IFilmBS filmBS, IAutoMapConverter <Entities.Film, Models.Film> convertEntityToModel, IAutoMapConverter <Models.Film, Entities.Film> convertModelToEntity) { _service = filmBS; mapEntityToModel = convertEntityToModel; mapModelToEntity = convertModelToEntity; }
public UserController(IUserBusinessLogic userBusiness, ICategoryBusinessLogic categoryBusiness, IMasterItemBusinessLogic masterItemBusiness, IAutoMapConverter <BeSafeEntities.User, BeSafeModels.User> convertUEntityToModel, IAutoMapConverter <BeSafeModels.User, BeSafeEntities.User> convertUModelToEntity, IAutoMapConverter <BeSafeEntities.Category, BeSafeModels.Category> mapCEntityToModel, IAutoMapConverter <BeSafeModels.Category, BeSafeEntities.Category> mapCModelToEntity, IAutoMapConverter <BeSafeEntities.MasterItemsSet, BeSafeModels.MasterItemsSet> mapItemEntityToModel, IAutoMapConverter <BeSafeModels.MasterItemsSet, BeSafeEntities.MasterItemsSet> mapItemModelToEntity, IOptions <AppConfig> appConfig, IHostingEnvironment environment) { this.UserBusinessLogic = userBusiness; mapUserEntityToModel = convertUEntityToModel; mapUserModelToEntity = convertUModelToEntity; this.mapCategoryEntityToModel = mapCEntityToModel; this.mapCategoryModelToEntity = mapCModelToEntity; this.categoryBusinessLogic = categoryBusiness; this.masterItemBusinessLogic = masterItemBusiness; this.mapMasterItemEntityToModel = mapItemEntityToModel; this.mapMasterItemModelToEntity = mapItemModelToEntity; config = appConfig; hostingEnvironment = environment; }