public static async Task <bool> DeleteAsync(Guid id) { using (var problemRepository = new ProblemRepository()) { var problemToDelete = await problemRepository.GetAsync(id); return(await problemRepository.DeleteAsync(problemToDelete)); } }
public static async Task <bool> DeleteAsync(Guid id) { using (var problemRepository = new ProblemRepository()) { var problemToDelete = await problemRepository.GetAsync(id); return(await problemRepository.DeleteAsync(problemToDelete)); } }