Exemplo n.º 1
0
 public bool AddLog(LogModel log)
 {
     log.DoTime = DateTime.Now;
     using (DataProvider dp = new DataProvider())
     {
         data.AddLog(dp, Mapper.Map <System_Log>(log));
         dp.SaveChanges();
         return(true);
     }
 }