@@ -0,0 +1,1838 @@
+/**%0A * Created by Djidjelly Siclait on 11/26/2016.%0A */%0Apackage com.evapps.Controller;%0A%0Aimport com.evapps.Service.CRUD.CreateDataService;%0Aimport com.evapps.Service.CRUD.DeleteDataService;%0Aimport com.evapps.Service.CRUD.ReadDataService;%0Aimport com.evapps.Service.CRUD.UpdateDataService;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.ui.Model;%0Aimport org.springframework.web.bind.annotation.GetMapping;%0Aimport org.springframework.web.servlet.ModelAndView;%0A%0A@Controller%0Apublic class AdminController %7B%0A    // Services%0A    @Autowired%0A    private CreateDataService CDS;%0A    @Autowired%0A    private ReadDataService RDS;%0A    @Autowired%0A    private UpdateDataService UDS;%0A    @Autowired%0A    private DeleteDataService DDS;%0A%0A    // Gets%0A    @GetMapping(%22/dashboard%22)%0A    public ModelAndView home(Model model)%7B%0A%0A        return new ModelAndView(%22%22);%0A    %7D%0A%0A    @GetMapping(%22/inventory%22)%0A    public ModelAndView viewInventory(Model model)%7B%0A%0A        model.addAttribute(%22selection%22, RDS.findAllRegisteredProducts());%0A%0A        return new ModelAndView(%22%22);%0A    %7D%0A%0A    @GetMapping(%22/users%22)%0A    public ModelAndView viewUsers(Model model)%7B%0A%0A        model.addAttribute(%22users%22, RDS.findAllRegisteredAccounts());%0A%0A        return new ModelAndView(%22%22);%0A    %7D%0A%0A    @GetMapping(%22/transactions%22)%0A    public ModelAndView viewTransactions(Model model)%7B%0A%0A        model.addAttribute(%22transactions%22, RDS.findAllRegisteredTransactions());%0A%0A        return new ModelAndView(%22%22);%0A    %7D%0A%0A    // Posts%0A    // TODO: registerNewProduct%0A    // TODO: editProduct%0A    // TODO: deleteProduct%0A    // TODO: restockProduct%0A    // TODO: uploadProductImage%0A    // TODO: emailUser%0A    // TODO: suspendUserAccount%0A    // TODO: makeAdmin%0A    // TODO: printTransaction%0A    // TODO: downloadReport%0A%7D%0A

Create AdminController