package com.realnet.angulardatatype.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.stpkg.Entity.Childform;
import com.realnet.angulardatatype.Services.ChildformUpdateService3 ;
@RequestMapping(value = "/Childform")
@RestController
public class ChildformUpdateController3{
	
	@Autowired
	private ChildformUpdateService3 Service;

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

}