Esempio n. 1
0
 public void MarkScheduleAsCompleted(ScheduleBotWebApp.Models.Schedule schedule)
 {
     using (IDbConnection db = new SqlConnection(ConnectionString))
     {
         db.Execute(ScheduleComplete, new { Id = schedule.ID }, commandType: CommandType.Text);
     }
 }
Esempio n. 2
0
 public int AddSchedule(ScheduleBotWebApp.Models.Schedule schedule)
 {
     using (IDbConnection db = new SqlConnection(ConnectionString))
     {
         return(db.Execute(ScheduleAdd, schedule, commandType: CommandType.Text));
     }
 }