public IHttpActionResult Delete(int id) { bool result = new RepairBillService().Remove(id); if (result) { return(Ok()); } else { return(Conflict()); } }
// PUT: api/RepairBill/5 public void Put(int id, [FromBody] RepairBillModel value) { var service = new RepairBillService(); service.AddOrEditRepairBill(value); }
// DELETE: api/RepairBill/5 public void Delete(int id) { var service = new RepairBillService(); service.RemoveRepairBill(id); }
// GET: api/RepairBill public IEnumerable <RepairBillModel> Get(int id) { var service = new RepairBillService(); return(service.GetAllRepairBillsById(id)); }