// POST: api/OnlineService
 public Document PostDocument(Document Doc)
 {
     Doc.Uploaded = DateTime.Now;
     Session.Store(Doc);
     Session.SaveChanges();
     return Doc;
 }
        public IHttpActionResult Post(Document Doc)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);

            }
            //ClaimsPrincipal principal = Request.GetRequestContext().Principal as ClaimsPrincipal;
            //Doc.CustomerId = principal.Identity.GetUserId();
            Doc.CustomerId = "000001";
            //person.Id = string.Empty;
            //await AsyncSession.StoreAsync(person); // stores person in session, assigning it to a collection `Employees`
            Doc.Uploaded = DateTime.Now;
            Session.Store(Doc);
            Session.SaveChanges();
            return Ok(Doc);
        }