public async Task <ActionResult> CreateGraphic(OapGraphic model) { // TODO: Add insert logic here var response = await OapGraphicClient.AddGraphicAsync(model); return(RedirectToAction("Index")); }
public ActionResult UpdateGraphic(OapGraphic model) { // TODO: Add update logic here var response = OapGraphicClient.UpdateGraphicAsync(model).Result; return(RedirectToAction("Index")); }
public OapChecklistGroupsController() : base() { OapChecklistGroupClient = new OapChecklistGroupClient(GetApiBaseUrl(), Client); OapChecklistSubGroupClient = new OapChecklistSubGroupClient(GetApiBaseUrl(), Client); OapChecklistClient = new OapChecklistClient(GetApiBaseUrl(), Client); OapGraphicClient = new OapGraphicClient(GetApiBaseUrl(), Client); }
public async Task <ActionResult> DeleteGraphic(OapGraphic model) { if (model.Id > 0) { var response = await OapGraphicClient.DeleteGraphicAsync(model.Id); } return(RedirectToAction("Index")); }
public async Task <ActionResult> Graphics() { var response = await OapGraphicClient.GetAllAsync(GetAllModelsCorp()); return(PartialView("OapGraphicPartial", response.Result.Data)); }
public async Task <ActionResult> Index() { var response = await OapGraphicClient.GetAllAsync(GetAllModelsCorp()); return(View("OapGraphic", response.Result.Data)); }
public OapGraphicsController() : base() { OapGraphicClient = new OapGraphicClient(GetApiBaseUrl(), Client); }
private ObservableCollection <OapGraphic> GetGraphics() { return(OapGraphicClient.GetAllAsync(GetAllModelsCorp()).Result?.Result?.Data); }