예제 #1
0
 public static async Task <IList <UserProblem> > CreateAsync(IList <UserProblem> userProblemCollection)
 {
     using (var userProblemRepository = new UserProblemRepository())
     {
         return(await userProblemRepository.CreateAsync(userProblemCollection));
     }
 }
예제 #2
0
 public static async Task <UserProblem> CreateAsync(UserProblem userProblem)
 {
     using (var userProblemRepository = new UserProblemRepository())
     {
         return(await userProblemRepository.CreateAsync(userProblem));
     }
 }