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

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