Esempio n. 1
0
 /// <summary>
 /// This method retrieve the user details with his/her posts
 /// </summary>
 /// <param name="userId"></param>
 /// <returns></returns>
 public ActionResult Details(int userId)
 {
     try
     {
         ViewBag.HasError = false;
         UserViewModel userDetails = _userPost.FetchUserDetailsByUserId(userId);
         return(View(userDetails));
     }
     catch (Exception ex)
     {
         ViewBag.HasError = true;
         logger.ErrorException("Error occured in User controller Details Action", ex);
         return(View());
     }
 }