public async Task <CampCreateResponse> CreateCampAsync(CampCreateRequest request) { var camp = await CampDomain.CreateAsync(request.Name, request.Description, request.Order, request.ChapterId); return(new CampCreateResponse { CampId = camp.CampId }); }
public ChapterMaturityModelNotFoundException(CampDomain campDomain, Guid chapterId) : base($"Chapter {chapterId} not found to camp {campDomain.Name}") { }
public async Task SaveCampAsync(CampDomain camp) { await this.maturityModelsCampDatabase.ReplaceOneAsync(c => c.CampId == camp.CampId, camp, new ReplaceOptions { IsUpsert = true }); }