public async Task <OutManufacturingPlanDTO> UpdateManufacturingPlanAsync(int id, InManufacturingPlanDTO inManufacturingPlanDto)
        {
            var manufacturingPlan = ManufacturingPlanMapping.InDtoToManufacturingPlan(inManufacturingPlanDto);

            manufacturingPlan.Id = id;
            var updatedManufacturingPlan = await _manufacturingPlanRepository.Update(manufacturingPlan);

            return(ManufacturingPlanMapping.ManufacturingPlanToOutDto(updatedManufacturingPlan));
        }
        public async Task <IEnumerable <OutManufacturingPlanDTO> > GetManufacturingPlansAsync(int skip, int take)
        {
            var manufacturingPlans = await _manufacturingPlanRepository.GetAll(skip, take);

            return(ManufacturingPlanMapping.ManufacturingPlanToOutDto(manufacturingPlans));
        }
        public async Task <OutManufacturingPlanDTO> GetManufacturingPlanByIdAsync(int id)
        {
            var manufacturingPlan = await _manufacturingPlanRepository.GetById(id);

            return(ManufacturingPlanMapping.ManufacturingPlanToOutDto(manufacturingPlan));
        }
        public async Task <OutManufacturingPlanDTO> CreateManufacturingPlanAsync(InManufacturingPlanDTO inManufacturingPlanDto)
        {
            var manufacturingPlan = await _manufacturingPlanRepository.Create(ManufacturingPlanMapping.InDtoToManufacturingPlan(inManufacturingPlanDto));

            return(ManufacturingPlanMapping.ManufacturingPlanToOutDto(manufacturingPlan));
        }