public void Load(bool isToCompareIdByIdentifierOftOfByIdentifier, System.Int64?valueToCompareIdByIdentifierOftOfByIdentifier , Framework.UIAction uiAction) { try { log.Info(string.Format("{0}: Details", Framework.LoggingOptions.UI_Process_Started.ToString())); MSBuildExtensionPack.CommonBLLEntities.BuildResponseMessageBuiltIn.Default _Response = MSBuildExtensionPack.CommonBLLIoC.IoCBuild.GetMessageOfDefaultOfByIdentifier(isToCompareIdByIdentifierOftOfByIdentifier && valueToCompareIdByIdentifierOftOfByIdentifier != default(System.Int64), valueToCompareIdByIdentifierOftOfByIdentifier, -1, -1, null); if (_Response.BusinessLogicLayerResponseStatus == Framework.CommonBLLEntities.BusinessLogicLayerResponseStatus.MessageOK || _Response.BusinessLogicLayerResponseStatus == Framework.CommonBLLEntities.BusinessLogicLayerResponseStatus.UIProcessReady) { this.Item = _Response.Message[0]; this.UIActionStatusMessage = new Framework.UIActionStatusMessage(typeof(BuildItemVM).FullName, uiAction.ToString(), uiAction, Framework.UIActionStatus.Launch); log.Info(string.Format("{0}: {1}", uiAction, Framework.LoggingOptions.UI_Process_Succeeded.ToString())); this.LoadExtraData(uiAction); } else { this.StatusOfResult = _Response.BusinessLogicLayerResponseStatus; this.StatusMessageOfResult = _Response.ServerErrorMessage; this.UIActionStatusMessage = new Framework.UIActionStatusMessage(typeof(BuildItemVM).FullName, uiAction.ToString(), uiAction, Framework.UIActionStatus.Failed); log.Error(string.Format("{0}: {1}, {2}, {3}", uiAction, Framework.LoggingOptions.UI_Process_Failed.ToString(), this.StatusOfResult, this.StatusMessageOfResult)); } } catch (Exception ex) { this.StatusOfResult = Framework.CommonBLLEntities.BusinessLogicLayerResponseStatus.MessageErrorDetected; this.StatusMessageOfResult = ex.Message; this.UIActionStatusMessage = new Framework.UIActionStatusMessage(typeof(BuildItemVM).FullName, uiAction.ToString(), uiAction, Framework.UIActionStatus.Failed); log.Error(string.Format("{0}: {1}, {2}, {3}", uiAction, Framework.LoggingOptions.UI_Process_Failed.ToString(), this.StatusOfResult, this.StatusMessageOfResult)); } }
public ActionResult Copy(bool isToCompareIdByIdentifierOftOfByIdentifier, System.Int64?valueToCompareIdByIdentifierOftOfByIdentifier) { MSBuildExtensionPack.CommonBLLEntities.BuildResponseMessageBuiltIn.Default _Response = MSBuildExtensionPack.CommonBLLIoC.IoCBuild.GetMessageOfDefaultOfByIdentifier(isToCompareIdByIdentifierOftOfByIdentifier, valueToCompareIdByIdentifierOftOfByIdentifier, -1, -1, null); if (_Response.BusinessLogicLayerResponseStatus == Framework.CommonBLLEntities.BusinessLogicLayerResponseStatus.MessageOK) { TempData[TempDataKey_BuildController_Copy] = _Response.Message[0]; TempData.Keep(TempDataKey_BuildController_Copy); } return(RedirectToAction("AddNew")); }