Esempio n. 1
0
 public void Delete(int id)
 {
     using (_connection = Utilities.Database.GetProfiledOpenConnection())
     {
         _connection.Delete<TwitterApp>(id);
     }
 }
Esempio n. 2
0
 public void Delete(int id)
 {
     using (_connection = Utilities.GetProfiledOpenConnection())
     {
         _connection.Delete<Vote>(id);
     }
 }
 public RestaurantType Delete(RestaurantType entity)
 {
     using (_connection = Utilities.GetProfiledOpenConnection())
     {
        _connection.Delete(entity);
     }
     return entity;
 }
Esempio n. 4
0
 public Veto Delete(Veto entity)
 {
     using (_connection = Utilities.GetProfiledOpenConnection())
     {
         _connection.Delete(entity);
     }
     return entity;
 }
 public ActionResult Delete(int id)
 {
     using (_connection = Utilities.GetOpenConnection())
     {
         _connection.Delete<User>(id);
     }
     return RedirectToAction("index");
 }
Esempio n. 6
0
 public Holiday Delete(Holiday entity)
 {
     using (_connection = Utilities.GetProfiledOpenConnection())
     {
         _connection.Delete(entity);
     }
     return entity;
 }
Esempio n. 7
0
 public JobLog Delete(JobLog entity)
 {
     using (_connection = Utilities.GetProfiledOpenConnection())
     {
         _connection.Delete(entity);
     }
     return entity;
 }
 public ActionResult Delete(string id)
 {
     using (_connection = Utilities.GetOpenConnection())
     {
         _connection.Delete<GUIDTestViewModel>(id);
     }
     return RedirectToAction("index");
 }