Beispiel #1
0
        public async Task <Produccion> ToProduccionAsync(ProduccionViewModel model)
        {
            return(new Produccion
            {
                //por algun motivo esto no va aqui
                //Id = model.Id,

                FechaProduccion = model.FechaProduccion,
                //
                EmpleadoProducción = await empleadoProduccionRepository.GetEmpleadoPorCI(model.UserCi),
                Fase = await faseRepository.GetFasePorNumeroAsync(model.FaseId),
                Pedido = pedidoRepository.GetPedidos(model.PedidoId),
            });
        }