Example #1
0
        public Response Remove(long id)
        {
            _choreService.Remove(id);

            return(new Response {
                Body = "success"
            });
        }
Example #2
0
        public IActionResult Delete(int id)
        {
            var chore = _choreService.Get(id);

            if (chore == null)
            {
                return(NotFound());
            }
            _choreService.Remove(chore);
            return(NoContent());
        }