public PickOfTheDay UpdatePickOfTheDay(PickOfTheDay existing, PickOfTheDay pickOfTheDay) { _repositoryWrapper.PickOfTheDay.UpdatePickOfTheDay(existing, pickOfTheDay); // _logger.WriteInfo($"Updated user with id: {user.Id}."); return(pickOfTheDay); }
public PickOfTheDay AddPickOfTheDay(PickOfTheDay address) { _repositoryWrapper.PickOfTheDay.AddPickOfTheDay(address); //_logger.WriteInfo($"Added user with id: {user.Id}."); return(address); }
private void AddNewPicksOfTheDay(List <Guid> newPicksOfTheDayIds, IPickOfTheDayService pickOfTheDayService) { foreach (var pickId in newPicksOfTheDayIds) { var newPickOfTheDay = new PickOfTheDay { BookId = pickId }; pickOfTheDayService.AddPickOfTheDay(newPickOfTheDay); } }
public void RemovePickOfTheDay(PickOfTheDay pickOfTheDay) { _repositoryWrapper.PickOfTheDay.RemovePickOfTheDay(pickOfTheDay); // _logger.WriteInfo($"Removed user with id: {user.Id}."); }