Pages
(Move to ...)
Assignment
Synopsis
C
Graphics
Compiler
C#
DCN
DBMS
Discrete Math
DS
IT Fun
Java
Json
NIELIT
Notes
Office
OOPS
OS
PHP
Project
Phython
Question
SSAD
Web
UGC Net
VB
ASP
▼
Monday, 20 January 2020
Return JSON Object from API Controller
Return JSON Object from API Controller ASP.Net C# (MVC)
public
IHttpActionResult
GetNotification()
{
UserRepository
ob =
new
UserRepository
();
List
<
NotificationAPIModel
> data =
new
List
<
NotificationAPIModel
>();
data = ob.GetNotificationAPI(
"0"
,
"2"
);
return
Ok(
new
{
data });
}
Next Topic
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment