public MyViewModel MyModule_GetSomething(string someData) { var model = new MyViewModel(WebAppUtils.GetNecessaryData(someData)); try { model.GetSomething(); model.ResultOperation = ResultEnum.Sucess.ToString(); } catch { model.ResultOperation = ResultEnum.Error.ToString(); } return(model); }