mirror of https://github.com/abpframework/abp.git
1 changed files with 0 additions and 28 deletions
@ -1,28 +0,0 @@ |
|||||
using Microsoft.AspNetCore.Mvc; |
|
||||
using MyCompanyName.MyProjectName.Models.Test; |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.Threading.Tasks; |
|
||||
|
|
||||
namespace MyCompanyName.MyProjectName.Controllers |
|
||||
{ |
|
||||
[Route("api/test")] |
|
||||
public class TestController : MyProjectNameController |
|
||||
{ |
|
||||
public TestController() |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
|
|
||||
[HttpGet] |
|
||||
[Route("")] |
|
||||
public async Task<List<TestModel>> GetAsync() |
|
||||
{ |
|
||||
return new List<TestModel> |
|
||||
{ |
|
||||
new TestModel {Name = "John", BirthDate = new DateTime(1942, 11, 18)}, |
|
||||
new TestModel {Name = "Adams", BirthDate = new DateTime(1997, 05, 24)} |
|
||||
}; |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue