Exemple #1
0
 public IActionResult CreateLogMessageForTeam([FromBody] LogMessage msg)
 {
     msg.TimeSlice = CalcTimeSlice(msg.CreatedDate, TimeSpan.FromMinutes(1));
     _context.Add <LogMessage>(msg);
     _context.SaveChanges();
     return(Ok(msg));
 }
 public static void InitializeDbForTests(LogMessageContext db)
 {
     db.LogMessages.AddRange(GetSeedingMsgs());
     db.SaveChanges();
 }