示例#1
0
        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);
        }
示例#2
0
 internal void ReceiveHunks(Document document, User user, int clientUpdateStamp, int serverUpdateStamp, Hunk[] hunks)
 {
     DocumentEditStateCollection documentEditStates = DataStoreClient.Get();
     DocumentEditState documentEditState = documentEditStates[document];
 }