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.Lista;
import com.realnet.basicp1.Services.ListaInsertService8;
@RequestMapping(value = "/Lista")
@RestController
public class ListaInsertController8{
	
	@Autowired
	private ListaInsertService8 Service;

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

}