public IActionResult ProgramGet([FromQuery] ProgramRequest request) { int totalRow = 0; var list = _programAccess.SP_Event_GetList_Web(request.EventID, request.EventName, request.IsSetted, request.Page, request.PageSize, out totalRow); return(Ok(new { TotalRow = totalRow, Items = list })); }
void HandleResult <T>(ProgramRequest <T> req) { if (req.IsError) { Debug.LogError(req.Error); } else { Debug.LogError("SUCCESS: " + req.Result); } }
public void SetUp() { mockExceptionHandling = new Mock <IExceptionHandling>(); mockDataAccess = new Mock <IDataAccess>(); mockExceptionHandling .Setup(x => x.LogException(It.IsAny <Exception>(), ExceptionPolicy.Web_Exception)) .Verifiable(); programRequest = new ProgramRequest(mockDataAccess.Object, mockExceptionHandling.Object); }
private void printProcessResult <T>(ProgramRequest <T> req) { if (req.IsError) { print("error hepens"); print(req.Error); } else { print(req.Result); } }
void ProcessResult <T>(ProgramRequest <T> req) { Debug.Log(req.TransactionId); if (req.IsError) { Log.text += "\n"; Log.text += req.Error; } else { Log.text += "\n"; Log.text += req.Result; } }
public ProgramChangeWrapper(ProgramRequest item) { this.Item = item; }
public static PropertyStates NewProgramChange(ProgramRequest programChange) { return new ProgramChangeWrapper(programChange); }
public static PropertyStates NewProgramChange(ProgramRequest programChange) { return(new ProgramChangeWrapper(programChange)); }
public ProgramChangeWrapper(ProgramRequest item) { this.Item = item; }