Ejemplo n.º 1
0
        public async Task <Domain.Entities.Domain.Test> DeleteTestAsync(int testId)
        {
            var test = await _testRepository.GetByIdAsync(testId);

            if (test == null)
            {
                return(null);
            }

            await _testRepository.DeleteAsync(test);

            return(test);
        }
Ejemplo n.º 2
0
 public async Task <bool> Delete(string uid)
 {
     return(await testRepository.DeleteAsync(uid));
 }