public async Task <ActionResult <IEnumerable <ActivityViewModel> > > GetActivities(int year, int month, int day) { if (month > 12) { return(BadRequest($"El mes no puede ser mayor a 12, valor recibido {month}.")); } var activities = await _activitiesRepository.GetActivitiesByYearMonthAndDay(year, month, day); return(Ok(_mapper.Map <IEnumerable <ActivityViewModel> >(activities))); }