public void Delete(Project Model)
 {
     var context = new GuitarDbContext();
     context.Entry(Model).State = System.Data.Entity.EntityState.Deleted;
     context.SaveChanges();
 }
 public void Create(Guitar.Entities.Guitars Model)
 {
     var context = new GuitarDbContext();
     context.Guitar.Add(Model);
     context.SaveChanges();
 }
 public void Update(Guitars Model)
 {
     var context = new GuitarDbContext();
     context.Entry(Model).State = System.Data.Entity.EntityState.Modified;
     context.SaveChanges();
 }
 public void Create(Project Model)
 {
     var context = new GuitarDbContext();
     context.Project.Add(Model);
     context.SaveChanges();
 }
        public IEnumerable<Guitars> GetGuitars()
        {
            var entities = new GuitarDbContext();

            var query = (from c in entities.Guitar
                         select c).ToList();
            return query;
        }