public async Task <LancheDTO> Update(LancheDTO lancheDTO) { var lanche = this.mapper.Map <Lanche>(lancheDTO); var result = await this.repo.Update(lanche); return(this.mapper.Map <LancheDTO>(result)); }
public async Task <bool> Delete(LancheDTO lancheDTO) { var lanche = this.mapper.Map <Lanche>(lancheDTO); return(await this.repo.Delete(lanche.Id)); }