CustomController.cs
365 字节
using DeviceLib.BLL;
using DeviceLib.Model.AGV;
using System.Collections.Generic;
using System.Web.Http;
namespace DeviceLib.WebApi.Controllers
{
[RoutePrefix("api/robots")]
public class CustomController : ApiController
{
[HttpGet]
public List<Robot> Get()
{
return RobotManager.GetAllRobots();
}
}
}