/// <inheritdoc/> создаю новый supplementshoper
        public async Task <SportNutritionSubClass> CreateSportNutritionSubClassAsync(UpdateSportNutritionSubClassRequest createRequest)
        {
            var dbSportNutritionSubClass = Mapper.Map <UpdateSportNutritionSubClassRequest, DbSportNutritionSubClass>(createRequest);

            _context.SportNutritionSubClasses.Add(dbSportNutritionSubClass);

            await _context.SaveChangesAsync();

            return(Mapper.Map <SportNutritionSubClass>(dbSportNutritionSubClass));
        }
        /// <inheritdoc/>
        public async Task <SportNutritionSubClass> UpdateSportNutritionSubClassAsync(int sportNutritionSubClassID, UpdateSportNutritionSubClassRequest updateRequest)
        {
            var dbSportNutritionSubClasses = await _context.SportNutritionSubClasses.Where(c => c.SportNutritionSubClassID == sportNutritionSubClassID).ToArrayAsync();

            var dbSportNutritionSubClass = dbSportNutritionSubClasses.FirstOrDefault();

            if (dbSportNutritionSubClass == null)
            {
                throw new RequestedResourceNotFoundException();
            }

            Mapper.Map(updateRequest, dbSportNutritionSubClass);

            await _context.SaveChangesAsync();

            dbSportNutritionSubClasses = await _context.SportNutritionSubClasses.Where(c => c.SportNutritionSubClassID == sportNutritionSubClassID).ToArrayAsync();

            return(dbSportNutritionSubClasses.Select(c => Mapper.Map <SportNutritionSubClass>(c)).FirstOrDefault());
        }