// PUT: api/Repairs/5 public void Put(int id, [FromBody] RepairModel value) { var service = new RepairsService(); service.AddOrEditRepair(value); }
// DELETE: api/Repairs/5 public void Delete(int id) { var service = new RepairsService(); service.RemoveRepair(id); }
// GET: api/Repairs public IEnumerable <RepairModel> Get(int id) { var service = new RepairsService(); return(service.GetAllRepairsById(id)); }