Exemplo n.º 1
0
        public Technologi AddNewTechnologi(Technologi data)
        {
            _db.GetTable <Technologi>().InsertOnSubmit(data);
            _db.SubmitChanges();

            return(data);
        }
Exemplo n.º 2
0
        public Technologi GetTechnologiById(long id)
        {
            var getData = from tech in _db.GetTable <Technologi>()
                          select tech;

            Technologi queryTechnologies = (from tech in getData
                                            where tech.IdTech == id
                                            select tech).FirstOrDefault();

            return(queryTechnologies);
        }