示例#1
0
        // PUT: api/Repairs/5
        public void Put(int id, [FromBody] RepairModel value)
        {
            var service = new RepairsService();

            service.AddOrEditRepair(value);
        }
示例#2
0
        // DELETE: api/Repairs/5
        public void Delete(int id)
        {
            var service = new RepairsService();

            service.RemoveRepair(id);
        }
示例#3
0
        // GET: api/Repairs
        public IEnumerable <RepairModel> Get(int id)
        {
            var service = new RepairsService();

            return(service.GetAllRepairsById(id));
        }