예제 #1
0
 public bool UpdateCraft(T_Crafts craft)
 {
     using (MEMSEntities db = new MEMSEntities())
     {
         db.Entry(craft).State = EntityState.Modified;
         return db.SaveChanges() > 0 ? true : false;
     }
 }
예제 #2
0
        public bool DeleteCraft(T_Crafts craft)
        {
            try
            {
                ph = new ProductHelper();
                return ph.DeleteCraft(craft);
            }
            catch (Exception ex)
            {

                throw ex;
            }
        }