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
sonal malhotra
NA
410
48.1k
after login how to insert Identity name in angular using w
Aug 13 2019 3:42 AM
hi,
after login how to insert Identity name in angular using web api ..
i failed to insert identity name
it is in web api
public
IHttpActionResult addcomment(CommentTable objcomment,
string
id) {
int
Id = Convert.ToInt32(id);
string
loggedInUserId = User.Identity.GetUserId();
objcomment.CommentedDate = DateTime.Now;
objcomment.id = Id;
objcomment.UserID = loggedInUserId;
objcomment.CreatedBy = User.Identity.Name;
ctx.CommentTables.Add(objcomment);
ctx.SaveChanges();
return
Ok(objcomment);
}
how to resolve these
Reply
Answers (
3
)
Not reload the page in Ng-Click
How to setup Angular 8 in visual studio 2017?