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