Example #1
0
 public Guid AddArchive(BiblosDS.Library.Common.Objects.DocumentArchive Archive)
 {
     Archive.IdArchive = Guid.NewGuid();
     using (Model.BiblosDS2010Entities db = new Model.BiblosDS2010Entities(BiblosDSConnectionString))
     {
         Model.Archive entityArchive = Archive.TryToConvertTo <Model.Archive>(db);
         db.AddToArchive(entityArchive);
         db.SaveChanges();
     }
     return(Archive.IdArchive);
 }