Пример #1
0
        public bool UpdateProgressImage(ProgressImageDTO img)
        {
            try
            {
                var p = (from x in db.progressImage
                         where img.PIID == x.PIID
                         select x).SingleOrDefault();

                p.PIID         = img.PIID;
                p.date         = img.date;
                p.customer_CID = img.customer_CID;

                db.SaveChanges();
                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
Пример #2
0
 public bool UpdateProgressImage(ProgressImageDTO PGI)
 {
     return(piq.UpdateProgressImage(PGI));
 }