// DELETE: api/BookingEquipment/5 public void Delete(int id) { try { BookingEquipmentDAL.Delete(id); } catch (Exception ex) { throw ex; } }
// POST: api/BookingEquipment public void Post([FromBody] BookingEquipment value) { try { BookingEquipmentDAL.Insert(value); } catch (Exception ex) { throw ex; } }
// PUT: api/BookingEquipment/5 public void Put(string id, [FromBody] BookingEquipment value) { try { BookingEquipmentDAL.Update(id, value); } catch (Exception ex) { throw ex; } }
// GET: api/BookingEquipment public IEnumerable <BookingEquipment> Get() { List <BookingEquipment> data = null; try { data = BookingEquipmentDAL.GetAll(); } catch (Exception ex) { throw ex; } return(data); }