예제 #1
0
 /// <summary>
 /// Create
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public static bool Create(SendDataModel model)
 {
     try {
         var repo = new SendDataRepository();
         return repo.Create(model);
     } catch (Exception ex) {
         throw ex;
     }
 }
예제 #2
0
 /// <summary>
 /// Create
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public bool Create(SendDataModel model)
 {
     try {
         using (var e = new EntitiesModel()) {
             var item = new SendData();
             item.ConnectionId = model.ConnectionId;
             item.Data = model.Data;
             item.Timestamp = model.Timestamp;
             return true;
         }
     } catch (Exception ex) {
         throw ex;
     }
 }