Esempio n. 1
0
 public bool SaveCallback(CallbackModel entity)
 {
     try
     {
         using (var sw = new StreamWriter(_filePath, true))
         {
             sw.WriteLine(string.Format("{0},{1},{2}", entity.Name, entity.Phone, DateTime.UtcNow));
         }
         return(true);
     }
     catch (Exception)
     {
         // todo log exception
         return(false);
     }
 }
Esempio n. 2
0
 public bool SaveCallback(CallbackModel entity)
 {
     try
     {
         using (var sw = new StreamWriter(_filePath, true))
         {
             sw.WriteLine(string.Format("{0},{1},{2}", entity.Name, entity.Phone, DateTime.UtcNow));
         }
         return true;
     }
     catch (Exception)
     {
         // todo log exception
         return false;
     }
 }