Example #1
0
        public RecipeController(CoDeliveryContext context)
        {
            Mapper.CreateMap <RecipeModel, Recipe>();
            Mapper.CreateMap <Recipe, RecipeModel>()
            .AfterMap(
                (src, dest) => dest.Integrations = src.IntegrationRecipes.Select(
                    ir => ir.Integration.IntegrationSystem.ToString())
                                                   .ToList());

            _context = context;
        }
Example #2
0
 public LoginController(CoDeliveryContext context)
 {
     _context = context;
 }
 public IntegrationController(CoDeliveryContext context, IntegrationSystemFactory integrationSystemFactory)
 {
     _context = context;
     _integrationSystemFactory = integrationSystemFactory;
 }
Example #4
0
 public FtpController(CoDeliveryContext context)
 {
     _context = context;
 }
 public DropboxController(DropBoxClient dropBoxClient, CoDeliveryContext context)
 {
     _context       = context;
     _dropBoxClient = dropBoxClient;
 }
 public DashboardController(CoDeliveryContext context)
 {
     _context = context;
 }