public ActionResult Index() { //IUnityContainer container = new UnityContainer(); //container.LoadConfiguration(); //var context = container.Resolve<IUserRepository>(); IBLL BLL = BLLGetter.GetBLL(); Result <IEnumerable <IUser> > result = BLL.GetAllUsers(); if (result.success) { return(View(result.ResultData)); } else { return(View("Error", result.message)); } }