public ActionResult Create(Document document) { if (ModelState.IsValid) { DB(() => { document.Owner = User; document = EntityMappingContext.Current.Documents.Add(document); }); return RedirectToAction("Edit", new { id = document.Id }); } return View(document); }
internal void ReceiveHunks(Document document, User user, int clientUpdateStamp, int serverUpdateStamp, Hunk[] hunks) { DocumentEditStateCollection documentEditStates = DataStoreClient.Get(); DocumentEditState documentEditState = documentEditStates[document]; }