// Path: 7.SpringMvc/in28minutes-services-springmvc/src/main/java/com/in28minutes/springmvc/services/web/model/AddressBook.java
// public class AddressBook {
// 
//     private long id;
//     private String firstName;
//     private String lastName;
//     private String phone;
//     private String email;
// 
//     public long getId() {
//         return id;
//     }
// 
//     public void setId(long id) {
//         this.id = id;
//     }
// 
//     public String getFirstName() {
//         return firstName;
//     }
// 
//     public void setFirstName(String firstName) {
//         this.firstName = firstName;
//     }
// 
//     public String getLastName() {
//         return lastName;
//     }
// 
//     public void setLastName(String lastName) {
//         this.lastName = lastName;
//     }
// 
//     public String getPhone() {
//         return phone;
//     }
// 
//     public void setPhone(String phone) {
//         this.phone = phone;
//     }
// 
//     public String getEmail() {
//         return email;
//     }
// 
//     public void setEmail(String email) {
//         this.email = email;
//     }
// }
// 
// Path: 7.SpringMvc/in28minutes-services-springmvc/src/main/java/com/in28minutes/springmvc/services/web/service/api/AddressBookService.java
// public interface AddressBookService {
// 	List<AddressBook> viewAllAddressBook();
// 
// 	void createAddressBook(AddressBook addressBook);
// 
// 	void updateAddressBook(int pos, AddressBook updateAddressBook);
// 
// 	void deleteAddressBook(int id);
// 
// 	void deleteAllAddressBook();
// 
// 	AddressBook findAddressBook(int id);
// }


import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.in28minutes.springmvc.services.web.model.AddressBook;
import com.in28minutes.springmvc.services.web.service.api.AddressBookService;
package com.in28minutes.springmvc.services.web.controller;




@Controller
@RequestMapping("/address")
public class AddressBookController {

	@Autowired
// Path: 7.SpringMvc/in28minutes-services-springmvc/src/main/java/com/in28minutes/springmvc/services/web/model/AddressBook.java
// public class AddressBook {
// 
//     private long id;
//     private String firstName;
//     private String lastName;
//     private String phone;
//     private String email;
// 
//     public long getId() {
//         return id;
//     }
// 
//     public void setId(long id) {
//         this.id = id;
//     }
// 
//     public String getFirstName() {
//         return firstName;
//     }
// 
//     public void setFirstName(String firstName) {
//         this.firstName = firstName;
//     }
// 
//     public String getLastName() {
//         return lastName;
//     }
// 
//     public void setLastName(String lastName) {
//         this.lastName = lastName;
//     }
// 
//     public String getPhone() {
//         return phone;
//     }
// 
//     public void setPhone(String phone) {
//         this.phone = phone;
//     }
// 
//     public String getEmail() {
//         return email;
//     }
// 
//     public void setEmail(String email) {
//         this.email = email;
//     }
// }
// 
// Path: 7.SpringMvc/in28minutes-services-springmvc/src/main/java/com/in28minutes/springmvc/services/web/service/api/AddressBookService.java
// public interface AddressBookService {
// 	List<AddressBook> viewAllAddressBook();
// 
// 	void createAddressBook(AddressBook addressBook);
// 
// 	void updateAddressBook(int pos, AddressBook updateAddressBook);
// 
// 	void deleteAddressBook(int id);
// 
// 	void deleteAllAddressBook();
// 
// 	AddressBook findAddressBook(int id);
// }


// Path: 7.SpringMvc/in28minutes-services-springmvc/src/main/java/com/in28minutes/springmvc/services/web/controller/AddressBookController.java
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.in28minutes.springmvc.services.web.model.AddressBook;
import com.in28minutes.springmvc.services.web.service.api.AddressBookService;

package com.in28minutes.springmvc.services.web.controller;




@Controller
@RequestMapping("/address")
public class AddressBookController {

	@Autowired
	AddressBookService addressBookService;