public void ChangeCalendarDescription(string tenantId, string calendarId, string description) { var calendar = _calendarRepository.Get(new Tenant(tenantId), new CalendarId(calendarId)); calendar.ChangeDescription(description); _calendarRepository.Save(calendar); }
public async Task <IActionResult> Get(string year) { var calendar = await Task.Run(() => _calendars.Get(year)); if (calendar == null) { return(NotFound()); } return(new ObjectResult(new CalendarResponse { Calendar = calendar, })); }
public async Task <IEnumerable <CalendarEventModel> > GetEvent(CalendarEventModel model) { var entities = await _repository.Get(model.Id, model.UserId, model.Name, model.LocationName, model.StartDate, model.EndDate); return(Mapper.Map <IEnumerable <CalendarEventModel> >(entities)); }
public List <Calendar> Get() { return(iCalendarRepository.Get()); }