Пример #1
0
 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();
     }
 }
Пример #2
0
 public void UpdateStatus(WorkshopResourceStatus value)
 {
     Status = value;
     DatabaseClient.UpdateResourceStatus(Id, value);
 }