public IActionResult AddFavEvent([FromBody] FavEvent favEvent) { if (_favEventServices.AddFavEvent(favEvent.IdUser, favEvent.IdEvent)) { _logger.LogInformation(String.Format("The event with id {0} added for user {1}", favEvent.IdEvent, favEvent.IdUser)); return(Ok(1)); } return(Ok(0)); }
public IActionResult RemoveFavEvent([FromBody] FavEvent favEvent) { _logger.LogInformation(String.Format("The event with id {0} was deleted", favEvent.Id)); return(Ok(_favEventServices.RemoveFavEvent(favEvent.Id))); }
public IActionResult NotifyUser([FromBody] FavEvent favEvent) { return(Ok(_favEventServices.NotifyUser(favEvent.IdUser))); }