public AdvertModel CreateAdvert(AdvertForCreationModel advert, int userId)
        {
            var mappedAdvert   = MapToAdvertEntity(advert, userId, "Live");
            var createdAdvert  = _repo.CreateAdvert(mappedAdvert);
            var advertToReturn = MapToModel(createdAdvert);

            return(advertToReturn);
        }
Beispiel #2
0
 public Advert CreateAdvert(Advert advert)
 {
     _repo.CreateAdvert(advert);
     return(advert);
 }