public void Remove(InvestigatEmp investigateEmp)
 {
     if (Context.Entry(investigateEmp).State == EntityState.Detached)
     {
         context.InvestigatEmp.Attach(investigateEmp);
     }
     context.InvestigatEmp.Remove(investigateEmp);
 }
        private void AddInvetigateEmp(int investigateId, int EmpId, byte EmpType)
        {
            var investigateEmp = new InvestigatEmp
            {
                InvestigatId = investigateId,
                EmpId        = EmpId,
                EmpType      = EmpType
            };

            _hrUnitOfWork.DisciplineRepository.Add(investigateEmp);
        }
 public void Attach(InvestigatEmp investigateEmp)
 {
     context.InvestigatEmp.Attach(investigateEmp);
 }
 public DbEntityEntry <InvestigatEmp> Entry(InvestigatEmp investigateEmp)
 {
     return(Context.Entry(investigateEmp));
 }
 public void Add(InvestigatEmp investigateEmp)
 {
     context.InvestigatEmp.Add(investigateEmp);
 }