// GET: Test public ActionResult Index() { OpSingleBase s = new OpSingleBase(); OperationResult result = _manager.ExecuteOperation(s); return(Json(result, JsonRequestBehavior.AllowGet)); }
// GET: Admin/Single public ActionResult Index() { OpSingleBase op = new OpSingleBase(); var result = _manager.ExecuteOperation(op); return(View(result.Items as SingleDto[])); }
private SingleDto getInstance(int id) { OpSingleBase op = new OpSingleBase(); op.Criteria.Id = id; var result = _manager.ExecuteOperation(op); SingleDto dto = result.Items[0] as SingleDto; return(dto); }
public ActionResult Reviews() { Operation operation = new OpSingleBase(); OperationResult result = _manager.ExecuteOperation(operation); ProductPicViewModel vm = new ProductPicViewModel { Single = (result.Items as SingleDto[]).ToList() }; return(View(vm)); }