package com.realnet.basicp1.Controllers;

 import java.util.List;
import org.springframework.http.ResponseEntity;
import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
import com.realnet.basicp1.Entity.Child;
import com.realnet.basicp1.Services.ChildUpdateService4 ;
@RequestMapping(value = "/Child")
@RestController
public class ChildUpdateController4{
	
	@Autowired
	private ChildUpdateService4 Service;

@PutMapping("/Child_update/{id}") 
	public  ResponseEntity<?> update(@PathVariable Integer id,@RequestBody Child  child) {
		ResponseEntity<?> update = Service.updateaction(id,child );
		System.out.println(update+" updateed");
		return update;
	}

}