public void Post([FromBody] Etel Ujetel)
        {
            etelekContext context = new etelekContext();

            context.Etels.Add(Ujetel);
            context.SaveChanges();
        }
        public int M3()
        {
            etelekContext context = new etelekContext();
            int           darab   = context.Etels.Count();

            return(darab);
        }
        public Etel M2(int id)
        {
            etelekContext context      = new etelekContext();
            var           keresettetel = from i in context.Etels
                                         where i.Sk == id
                                         select i;

            return(keresettetel.FirstOrDefault());
        }
        public void Delete(int id)
        {
            etelekContext context  = new etelekContext();
            var           törlendő = (from i in context.Etels
                                      where i.Sk == id
                                      select i).FirstOrDefault();

            context.Remove(törlendő);
            context.SaveChanges();
        }
        public IEnumerable <Etel> M1()
        {
            etelekContext context = new etelekContext();

            return(context.Etels.ToList());
        }