public IActionResult Delete(int id)
        {
            try
            {
                _repository.DeleteById(id);
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }

            return(Ok());
        }