public ActionResult UpdateGraphic(OapGraphic model) { // TODO: Add update logic here var response = OapGraphicClient.UpdateGraphicAsync(model).Result; return(RedirectToAction("Index")); }
public async Task <ActionResult> CreateGraphic(OapGraphic model) { // TODO: Add insert logic here var response = await OapGraphicClient.AddGraphicAsync(model); return(RedirectToAction("Index")); }
public async Task <ActionResult> DeleteGraphic(OapGraphic model) { if (model.Id > 0) { var response = await OapGraphicClient.DeleteGraphicAsync(model.Id); } return(RedirectToAction("Index")); }
public WebApiResult <bool> UpdateGraphic([FromBody] OapGraphic list) { if (list == null) { throw new System.Exception("Argument is null"); } return(TryCatch <UpdateGraphicRequest, bool>(new UpdateGraphicRequest(list))); }
public UpdateGraphicRequest(OapGraphic graphic) { Graphic = graphic; }
public WebApiResult <OapGraphic> AddGraphic([FromBody] OapGraphic list) { return(TryCatch <AddGraphicRequest, OapGraphic>(new AddGraphicRequest(list))); }