public Favourite Put(int id, FavouriteDTO value) { Favourite model = IFavouriteRepository.Get(id); if (value.propertyId != 0) { model.propertyId = value.propertyId; } if (value.userId != 0) { model.userId = value.userId; } return(IFavouriteRepository.Update(model)); }
public ActionResult <Favourite> Get(int id) { return(IFavouriteRepository.Get(id)); }
public Favourite Get(Guid id) { return(_favouriteRepository.Get(id)); }