public async Task <Elmah.ViewModelData.ElmahType.ItemVM> GetItemVM( string type = default(string)) { Elmah.AspNetMvcCoreViewModel.ElmahType.ItemVM retval = new Elmah.AspNetMvcCoreViewModel.ElmahType.ItemVM(); retval.SetServiceProvider(this._serviceProvider); await retval.Load(!string.IsNullOrEmpty(type), type, Framework.ViewModels.UIAction.ViewDetails); return(retval); }
/// <summary> /// GET method of details page, based on identifier or unique constraint, this entity only, no related entities. /// GET: /ElmahType/Details/5 /// </summary> /// <returns></returns> //[Authorize(Roles = Elmah.MvcCore.Security.RolesCombination.AllRoles)] public async Task <ActionResult> Details(string type = default(string)) { Framework.ViewModels.UIAction uiAction = Framework.ViewModels.UIAction.ViewDetails; var vm = new Elmah.AspNetMvcCoreViewModel.ElmahType.ItemVM(); vm.SetServiceProvider(this._serviceProvider); await vm.Load(!string.IsNullOrEmpty(type), type, uiAction); vm.ContentData.Title = string.Format("{0} {1}", Framework.Resx.UIStringResource.Details, Elmah.Resx.UIStringResourcePerApp.ElmahType); //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.ElmahType); return(View(vm)); }