Пример #1
0
 /*Admin Branch*/
 @RequestMapping(
     value = "/getBranches/{pageNo}/{pageSize}",
     method = {RequestMethod.GET, RequestMethod.POST},
     produces = "application/json")
 public List<Branch> getBranches(@PathVariable int pageNo, @PathVariable int pageSize) {
   return branchdao.getAllBranches(pageNo, pageSize);
 }
Пример #2
0
 @RequestMapping(
     value = "/deleteBranch",
     method = {RequestMethod.GET, RequestMethod.POST},
     consumes = "application/json")
 public List<Branch> deleteBranch(@RequestBody Branch branch) {
   branchdao.deleteBranch(branch);
   return branchdao.getAllBranches(1, 5);
 }