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(); }
public BaseViewModel(CustomObject directories) { Directories = directories?.ToExpando(); }