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
Rahul Sharma
NA
194
14k
How to Validate parameter in asp.net core 3.0 web api's get request?
May 23 2021 5:34 AM
I want to validate the parameter in web api's get request. How to achieve this.
code:
[HttpGet(
"{id}"
)]
public
async Task<ActionResult<Schedd>> GetSchedd(
string
id)
{
return
Ok(await _context.Schedds.FromSqlRaw<Schedd>(
"sp_userprofile {0},{1},{2}"
, id, 7,
null
).ToListAsync());
}
Here String
id
must not contain any symbol or alphapet.
Reply
Answers (
2
)
Visual programming
email notifaication on failure