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
Guest User
Tech Writer
103
13.3k
Face Null Value from Model
May 26 2021 4:54 AM
This is my code I have face a Issue null value
public class NotificationMenuViewComponent : ViewComponent
{
public IViewComponentResult Invoke(NotificationMenuDataModel notificationMenuDataModel)
{
var vm = new Notification();--Here Null Value Render but i have set value in input box.
if (vm.Title != null)
{
try
{
vm.Title = notificationMenuDataModel.Title;
vm.Message = notificationMenuDataModel.Message;
}
catch (Exception ex)
{
}
}
Reply
Answers (
3
)
logging in the application using Serilog
Get Message Detail.