Exemple #1
0
 public bool DeleteParticipant(Participant part)
 {
     try
     {
         if (!_iTeamDetailDataAccess.GetTeamDetailforParticipantId(part.Id))
         {
             _dbContext.Entry(part).State = System.Data.Entity.EntityState.Deleted;
             _dbContext.SaveChanges();
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch (SqlException ex)
     {
         /*Logging*/
         throw ex;
     }
 }