Example #1
0
        public ST_SurplusDay Update(ST_SurplusDay data)
        {
            dao.Entry(data).State = EntityState.Modified;

            dao.SaveChanges();

            return(data);
        }
Example #2
0
        public void SoftDelete(ST_SurplusDay data)
        {
            data.del_yn = 1;

            dao.Entry(data).State = EntityState.Modified;

            dao.SaveChanges();
        }
Example #3
0
        public ST_SurplusDay Insert(ST_SurplusDay data)
        {
            dao.ST_SurplusDay.Add(data);

            dao.SaveChanges();

            return(data);
        }