Exemple #1
0
 public void UpdateShutdownHistoryFormachine(int shutdownId, int userId)
 {
     Data.Models.ShutdownHistory oldShutdownHistory = _shutdownHistoryRepository.Table.Where(w => w.Id == shutdownId).FirstOrDefault();
     if (oldShutdownHistory != null)
     {
         oldShutdownHistory.StartDate = DateTime.UtcNow.Date;
         oldShutdownHistory.StartBy   = userId;
         _shutdownHistoryRepository.Update(oldShutdownHistory);
     }
 }
Exemple #2
0
 public int Add(Data.Models.ShutdownHistory shutdownhistory)
 {
     _shutdownHistoryRepository.Insert(shutdownhistory);
     return(shutdownhistory.Id);
 }