public ActionResult DeleteAccelerator(AppAccelerator accelerator) { var result = AdminModuleManager.DeleteAccelerator(accelerator); return(new JsonNetResult { Data = result }); }
public ActionResult EditAccelerator(AppAccelerator accelerator) { if (!ModelState.IsValid) { throw new HttpException(406, "Not Acceptable - Invalid Data"); } var updatedAccelerator = AdminModuleManager.EditAccelerator(accelerator); return(new JsonNetResult { Data = updatedAccelerator }); }