TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Asim Jena
NA
81
29.9k
how to give response "result":"Y" in web api for post method
Aug 27 2018 4:39 AM
public HttpResponseMessage CreateUpdateRegister(RegisterMaster request)
{
if(ModelState.IsValid)
{
CategoryAppServiceObj.CreateUpdateRegister(request);
var res=Request.CreateResponse(HttpStatusCode.OK,"");
// res.Headers.Location = new Uri(Request.RequestUri+request.result.ToString());
res.Content = new StringContent("Y", Encoding.UTF8, "application/json");
return res;
}
else
{
return Request.CreateErrorResponse(HttpStatusCode.BadRequest,ModelState);
}
}
this is my code how to do that
Reply
Answers (
2
)
How to add telerik control in MVC Project
How To Bind Telrik Org Tree In MVC - 5