Beispiel #1
0
        public async Task <Elmah.ViewModelData.ELMAH_Error.ItemVM> GetItemVM(
            System.Guid?errorId = default(System.Guid?))
        {
            Elmah.AspNetMvcCoreViewModel.ELMAH_Error.ItemVM retval = new Elmah.AspNetMvcCoreViewModel.ELMAH_Error.ItemVM();
            retval.SetServiceProvider(this._serviceProvider);
            await retval.Load(errorId.HasValue, errorId, Framework.ViewModels.UIAction.ViewDetails);

            return(retval);
        }
Beispiel #2
0
        /// <summary>
        /// GET method of details page, based on identifier or unique constraint, this entity only, no related entities.
        /// GET: /ELMAH_Error/Details/5
        /// </summary>
        /// <returns></returns>
        //[Authorize(Roles = Elmah.MvcCore.Security.RolesCombination.AllRoles)]
        public async Task <ActionResult> Details(System.Guid?errorId = default(System.Guid?))
        {
            Framework.ViewModels.UIAction uiAction = Framework.ViewModels.UIAction.ViewDetails;
            var vm = new Elmah.AspNetMvcCoreViewModel.ELMAH_Error.ItemVM();

            vm.SetServiceProvider(this._serviceProvider);
            await vm.Load(errorId.HasValue, errorId, uiAction);

            vm.ContentData.Title = string.Format("{0} {1}", Framework.Resx.UIStringResource.Details, Elmah.Resx.UIStringResourcePerApp.ELMAH_Error);
            //TODO: create a new new entry in xxx.UIStringResourceExt.resx file if you need, and uncomment next line, reference resource key here, then add in .cshtml file.
            //vm.ContentData.Summary = string.Format("{0} {1}", Framework.Resx.UIStringResource.Details, Elmah.Resx.UIStringResourcePerApp.ELMAH_Error);

            return(View(vm));
        }