public class HomeController : Controller
{
ILog logger = LogManager.GetLogger(typeof(HomeController));
private readonly IUserService _userService;
private readonly ITaxPayerService _taxpayerService;
public HomeController(IUserService userService, ITaxPayerService taxpayerService)
{
_userService = userService;
_taxpayerService = taxpayerService;
}
[Authorize]
public ActionResult TestPage()
{
var users = new List<User>();
try
{
users = _userService.GetAllUsers().ToList();
}
catch (Exception ex)
{
logger.Error(ex.ToString());
}
return View(users);
}
[AllowAnonymous]
public ActionResult Index()
{
//IEnumerable<User> LUsrp = new IEnumerable<User>();
//LUsrp = UsrService.getAllUsersPassword();
//IList<User> LUsr = new List<User>();
//LUsr = UsrService.GetUsers();
//User usr = new Models.User();
//usr = UsrService.GetUserById("Sachin.Pawar");
return View();
}
[AllowAnonymous]
public ActionResult About()
{
ViewBag.Message = "Your application description page.";
return View();
}
[AllowAnonymous]
public ActionResult Contact()
{
ViewBag.Message = "Your contact page.";
return View();
}
}
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|
--
You received this message because you are subscribed to the Google Groups "structuremap-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to structuremap-us...@googlegroups.com.
To post to this group, send email to structure...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/structuremap-users/e0873810-6de3-4b32-82c7-93b8af5fe7e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to structuremap-users+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to structuremap-users+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to structuremap-users+unsub...@googlegroups.com.