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

            try {
                data = BookingEquipmentDAL.GetAll();
            }
            catch (Exception ex) {
                throw ex;
            }
            return(data);
        }