1
Answer

Add another condition in where clause

Ramco Ramco

Ramco Ramco

2y
477
1

Hi

 I have below statement and want to add another condition in where clause (k.participantId == )

public Int32 DeleteRecordNomiees(Int32 ID)
        {
            try
            {
                var records = context.TrainingNominees.Where(k => k.TrainingID == ID);
                context.TrainingNominees.DeleteAllOnSubmit(records);
                context.SubmitChanges();
                return ID;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

Thanks

Answers (1)