input or dto ?
Opened this issue · 1 comments
pvasquez1992 commented
hi! , i have a issue with the inputDTO and Input ..
for example
export const create = async (payload: IngredientInput): Promise => { i
on service method create we have a IngredientInput but in the controller we send a CreateIngredientDTO
export const create = async(payload: CreateIngredientDTO): Promise => {
return mapper.toIngredient(await service.create(payload))
}
how can i resolve this issue, we have a problem to casting.
please help me
pvasquez1992 commented
sorry i have a problem..