public IActionResult AddUpdateContact(ContactDetail contactDetails, string returnUrl)
 {
     if (contactDetails.IsNew)
     {
         contactDetails.UserId = User.GetId();
         if (DbContext.ContactDetail.Create(contactDetails) > 0)
         {
             ShowSavedSuccessfullyToast();
         }
         else
         {
             ShowTaskFailedToast();
         };
     }
     else
     {
         if (DbContext.ContactDetail.Update(contactDetails))
         {
             ShowUpdateSuccessfullyToast();
         }
         else
         {
             ShowTaskFailedToast();
         }
         ;
     }
     return Redirect(returnUrl);
 }
        public IViewComponentResult Invoke(long userId)
        {
            var contact = DbContext.ContactDetail.Find(
                       x => x.UserId, userId);

            if (contact != null) return View("ContactView", contact);

            contact = new ContactDetail
            {
                FirstName = User.GetName(),
            };
            return View("ContactView", contact);
            
        }