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

            dao.SaveChanges();

            return(data);
        }
Exemple #2
0
        public ST_Emp Insert(ST_Emp data)
        {
            dao.ST_Emp.Add(data);

            dao.SaveChanges();

            return(data);
        }
Exemple #3
0
        public void Soft_Delete(ST_Emp data)
        {
            data.password2 = data.password;

            data.del_yn = 1;

            data.deleted_at = DateTime.Now;

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


            dao.SaveChanges();
        }