Beispiel #1
0
 public bool SaveLog(Log entity)
 {
     ///TODO: Add validations before saving data
     try
     {
         using (var db = new CrossoverEntities())
         {
             db.logs.Add(ConvertDTOEntityToDBModel(entity));
             db.SaveChanges();
         }
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Beispiel #2
0
 public bool SaveApplication(Application entity)
 {
     ///TODO: Add validations before saving data
     try
     {
         using (var db = new CrossoverEntities())
         {
             db.applications.Add(ConvertDTOEntityToDBModel(entity));
             db.SaveChanges();
         }
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }