Esempio n. 1
0
        public void Post(Shared.Face face)
        {
            var catalog = new Database.Catalog();

            catalog.Faces.Add(Utils.ToDatabase(face));
            catalog.SaveChanges();
        }
Esempio n. 2
0
        public void Delete()
        {
            var catalog = new Database.Catalog();

            catalog.Faces.RemoveRange(catalog.Faces);
            catalog.SaveChanges();
        }
Esempio n. 3
0
        public IEnumerable <Shared.Face> Get()
        {
            var catalog = new Database.Catalog();

            return(catalog.Faces.Select(Utils.ToShared).ToArray());
        }