//REST API call - AJAX ///~/Scripts/Apps/HomeIndex.js -updateRun() public async Task <IHttpActionResult> Put([FromBody] RunDto oRunDto) { try { var oRun = new Run() { Number = oRunDto.Key, Note = oRunDto.Note, Signature = String.IsNullOrWhiteSpace(oRunDto.Signature) ? null : Convert.FromBase64String(oRunDto.Signature) }; var oRunFactory = new RunFactory(); await oRunFactory.Update(oRun); } catch (Exception oException) { oException.Log("Update run"); return(this.InternalServerError()); } return(this.Ok()); }