Ejemplo n.º 1
0
 public bool CreateAnuncio(AnuncioModel anuncio)
 {
     return(_anuncioService.Add(TransformObject.ModelEntity <Anuncio>(anuncio)));
 }
Ejemplo n.º 2
0
        public AnuncioModel GetById(int id)
        {
            var anuncio = TransformObject.ModelEntity <AnuncioModel>(_anuncioService.GetById(id));

            return(anuncio);
        }
Ejemplo n.º 3
0
 public bool EditAnuncio(AnuncioModel anuncio)
 {
     return(_anuncioService.Update(TransformObject.ModelEntity <Anuncio>(anuncio)));
 }