You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.1 KiB
53 lines
1.1 KiB
using EasyBL.WebApi.Filters;
|
|
using EasyBL.WEBAPP.SYS;
|
|
using Entity.ShowEasyDtos;
|
|
using Entity.Sugar;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Net.Http;
|
|
using System.Web.Http;
|
|
|
|
namespace WebApp.Controllers
|
|
{
|
|
public class TestController : ApiController
|
|
{
|
|
|
|
|
|
[HttpGet]
|
|
public HttpResponseMessage GetAllCity()
|
|
{
|
|
return new TestService().GetAllCity();
|
|
}
|
|
|
|
[HttpGet]
|
|
public HttpResponseMessage GetAllCity1(string ID, string Name)
|
|
{
|
|
return new TestService().GetAllCityByID(ID, Name);
|
|
}
|
|
|
|
[HttpPost]
|
|
public HttpResponseMessage InsertUser([FromBody] TestUser dto)
|
|
{
|
|
return new TestService().InsertUser(dto);
|
|
|
|
}
|
|
|
|
|
|
[HttpPost]
|
|
public HttpResponseMessage SaveUser([FromBody] SETB_CMS_Member dto)
|
|
{
|
|
return new TestService().Insert(dto);
|
|
|
|
}
|
|
|
|
[HttpDelete]
|
|
public HttpResponseMessage DelUser(string ID)
|
|
{
|
|
return new TestService().DeleteCity(ID);
|
|
|
|
}
|
|
|
|
}
|
|
}
|