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)
{
}
}