public Technologi AddNewTechnologi(Technologi data) { _db.GetTable <Technologi>().InsertOnSubmit(data); _db.SubmitChanges(); return(data); }
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); }