public ST_Emp Update(ST_Emp data) { dao.Entry(data).State = EntityState.Modified; dao.SaveChanges(); return(data); }
public ST_Emp Insert(ST_Emp data) { dao.ST_Emp.Add(data); dao.SaveChanges(); return(data); }
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(); }