Exemple #1
0
        public vtype deletec(int id)
        {
            vtype a = context.vtype.Find(id);

            if (a != null)
            {
                context.vtype.Remove(a);
                context.SaveChanges();
            }
            return(a);
        }
Exemple #2
0
        public vtype Getv(int id)
        {
            vtype a = context.vtype.Where(i => i.vtypeId == id).FirstOrDefault();

            return(a);
        }
Exemple #3
0
 public vtype Add(vtype v)
 {
     context.vtype.Add(v);
     context.SaveChanges();
     return(v);
 }