package com.realnet.basicp1.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
import org.springframework.http.*;
import com.realnet.basicp1.Entity.Testb;
import com.realnet.basicp1.Services.TestbInsertService1;
@RequestMapping(value = "/Testb")
@RestController
public class TestbInsertController1{
	
	@Autowired
	private TestbInsertService1 Service;

@PostMapping("/Testb_insert") 
	public  ResponseEntity<?> insert(@RequestBody Testb testb) {
		Testb insertaction = Service.insertaction(testb);
		return new ResponseEntity<>(insertaction, HttpStatus.OK);
	}

}