コード例 #1
0
 public Task <Gig> ChangeCoverImageAsync(Gig gig, string coverImage)
 {
     gig.SetCover(coverImage);
     return(Task.FromResult(gig));
 }
コード例 #2
0
        public Task <Gig> CreateAsync(string title, Guid categoryId, string coverImage, string description)
        {
            var newGig = Gig.Create(GuidGenerator.Create(), categoryId, title, coverImage, description);

            return(_gigRepository.InsertAsync(newGig, true));
        }