public static async Task <bool> DeleteAsync(IList <UserProblem> userProblems) { using (var userProblemRepository = new UserProblemRepository()) { return(await userProblemRepository.DeleteAsync(userProblems)); } }
public static async Task <bool> DeleteAsync(Guid id) { using (var userProblemRepository = new UserProblemRepository()) { var userProblemToDelete = await userProblemRepository.GetAsync(id); return(await userProblemRepository.DeleteAsync(userProblemToDelete)); } }