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