This commit is contained in:
parent
1b60bf776f
commit
3d5c349288
@ -10,7 +10,8 @@ namespace NeDvachAPI.Controllers
|
||||
[HttpGet(Name = "GetPosts")]
|
||||
public string Get()
|
||||
{
|
||||
Post[] posts = DBchat.DbList();
|
||||
//Post[] posts = DBchat.DbList();
|
||||
List<Post> posts = DBchat.DbList();
|
||||
string postsJson = JsonSerializer.Serialize(posts);
|
||||
return postsJson ;
|
||||
|
||||
|
Reference in New Issue
Block a user