public static void UpdateResourceStatus(int id, WorkshopResourceStatus status) { using (var transaction = GetTransaction()) { transaction.Connection.Execute("UPDATE `Resource` SET `Status`=@status WHERE `Id`=@id", new { id, status }, transaction); transaction.Commit(); } }
public void UpdateStatus(WorkshopResourceStatus value) { Status = value; DatabaseClient.UpdateResourceStatus(Id, value); }