Esempio n. 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);
     }
 }
Esempio n. 2
0
 public int Add(Data.Models.ShutdownHistory shutdownhistory)
 {
     _shutdownHistoryRepository.Insert(shutdownhistory);
     return(shutdownhistory.Id);
 }