public IHttpActionResult EditMessage([FromBody] JObject request) { Message msg = request.ToObject <Message>(); Repo <Message> messageRepo = new MessageRepo(); messageRepo.Update(msg); return(Ok()); }
private void ProcessResends() { var resends = _msgRepo.GetResends(Execution.JobConfig); foreach (var msg in resends) { msg.ExecutionId = Execution.Id; Execution.ResendAttempts++; msg.SysStart = DateTime.Now; SendMail(msg); if (msg.Status != MessageStatus.Sent) { Execution.ResendFails++; } _msgRepo.Update(msg, msg.Id); } }