RecipeProfile.cs 425 B

123456789101112131415161718
  1. using AutoMapper;
  2. using ProductionLineMonitor.Core.Dtos;
  3. using ProductionLineMonitor.Core.Models;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Text;
  7. namespace ProductionLineMonitor.Core.Profiles
  8. {
  9. public class RecipeProfile : Profile
  10. {
  11. public RecipeProfile()
  12. {
  13. CreateMap<Recipe, RecipeDto>();
  14. CreateMap<RecipeCreateOrUpdateDto, Recipe>();
  15. }
  16. }
  17. }