Exemple #1
0
        public async Task <IActionResult> Delete(string id
                                                 )
        {
            var b = await _repository.GetAsync(o => o.Id == id);

            if (b == null)
            {
                return(Ok("null"));
            }
            await _repository.DeleteAsync(b, true);

            return(Ok("complete"));
        }