예제 #1
0
        public bool CreateContainer(Container container)
        {
            dbContext.Container.Add(container);
            dbContext.SaveChanges();

            return true;
        }
예제 #2
0
 public bool EditContainer(Container model)
 {
     Container teacher = dbContext.Container.Where(
        x => x.gKey == model.gKey).SingleOrDefault();
     if (teacher != null)
     {
         dbContext.Entry(teacher).CurrentValues.SetValues(model);
         dbContext.SaveChanges();
         return true;
     }
     return false;
 }
예제 #3
0
 public CompositeType GetDataUsingDataContract(Container composite)
 {
     throw new NotImplementedException();
 }