Exemple #1
0
        public async Task Delete(int id)
        {
            //TODO: Business Logic goes here
            if (id == null)
            {
                throw new Exception("Driver is NULL!");
            }

            await _riderRepo.Delete(id);
        }
        public async Task <ActionResult <bool> > Delete(string id)
        {
            var result = await _riderRepository.Delete(id);

            return(Ok(result));
        }