public IHttpActionResult AnnouncementList(int from, int to) { var announcements = announcement_repository.GetAnnouncementList(from, to); return(Ok(new CollectionResponse() { TotalCount = announcement_repository.GetAnnouncementCount(), Collection = AnnouncementListItem.MapTo(announcements) })); }