Ramco Ramco

Ramco Ramco

  • 443
  • 3.4k
  • 526.6k

Add another condition in where clause

Sep 9 2022 6:16 AM

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)