Exemplo n.º 1
0
        public static Stuff SaveSample()
        {
            var stuff = new Stuff()
            {
                Title       = "some stuff",
                CreatedDate = DateTime.Now,
                IsDeleted   = false
            };

            var stuffRepository = new StuffRepository();

            stuffRepository.Insert(stuff);
            stuffRepository.Save();
            return(stuff);
        }
Exemplo n.º 2
0
        public static List <Stuff> GetAllStuff()
        {
            var stuffRepository = new StuffRepository();

            return(stuffRepository.GetAll());
        }