public int Insert(TransportNote poco, IDbTransaction transaction) { using (var connection = new SqlConnection(ConfigurationManager.ConnectionStrings["ABS-SQL"].ConnectionString)) { return connection.Execute(insertTemplate, poco, transaction); } }
public bool Update(TransportNote poco) { throw new System.NotImplementedException(); }
// PUT: api/TransportNote/5 public void Put(int id, TransportNote note) { throw new NotImplementedException(); }
public int Delete(TransportNote poco) { throw new System.NotImplementedException(); }
// POST: api/TransportNote public int Post(TransportNote note) { return transportNoteRepository.Insert(note); }