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

                return(await userProblemRepository.DeleteAsync(userProblemToDelete));
            }
        }