public async Task <JsonResult> Insert() { try { var id = Guid.Parse(Request.Form["id"]); var api = Guid.Parse(Request.Form["api"]); var oid = Guid.Parse(Request.Form["oid"]); var source = Request.Form["source"]; if (ImageLinkStorageService.Insert(id, api, oid, source)) { return(Success(id.ToString())); } return(Failed(MessageUtility.ServerError())); } catch { return(Failed(MessageUtility.ServerError())); } }
public async Task <JsonResult> ILSInsert() { try { var id = Guid.Parse(Request.Form["id"]); var oid = Guid.Parse(Request.Form["oid"]); var source = Request.Form["src"]; var aid = Guid.Parse(Request.Form["aid"]); var dtid = Guid.Parse(Request.Form["dtid"]); var cid = Guid.Parse(Request.Form["cid"]); var order = int.Parse(Request.Form["o"]); if (ImageLinkStorageService.Insert(id, oid, source, aid, dtid, false, cid, order)) { return(Success(id.ToString())); } return(Failed(MessageUtilityService.FailedInsert("Image"))); } catch { return(Failed(MessageUtilityService.ServerError())); } }