Exemple #1
0
		public BaseViewModel(ExceptionDetails exceptionDetails)
		{
			var modelState = new CustomObject();

			modelState.Add("HasErrors", true);
			modelState.Add("ErrorMessage", exceptionDetails.Message);
			modelState.Add("BaseExceptionMessage", exceptionDetails.BaseExceptionMessage);

			ModelState = modelState.ToExpando();
		}
Exemple #2
0
		public BaseViewModel(CustomObject directories)
		{
			Directories = directories?.ToExpando();
		}