public async Task<IHttpActionResult> SaveASinglePage(Page page) { var persistence = new PagePersistence(); page.Day = DateTime.Today; await persistence.Save(page); return Ok(page); }
public async Task<IHttpActionResult> SaveAMultiplePage(Page[] pages) { var persistence = new PagePersistence(); foreach (var page in pages) { page.Day = DateTime.Today; } await persistence.Save(pages); return Ok(pages); }