/// <summary> /// Delete /// </summary> /// <param name="entity"></param> public virtual void Delete(T entity) { if (entity == null) { throw new ArgumentNullException("entity"); } _repository.Remove(entity); _unitOfWork.Commit(); }
public bool DeleteDepartment(long id) { IGenericDataRepository <Department> departmentRepo = _uow.RepositoryFor <Department>(); Department department = new Department(); department.DepartmentID = id; department.EntityState = DomainLayer.EntityState.Deleted; departmentRepo.Remove(department);; return(true); }
public bool DeleteCourse(long id) { IGenericDataRepository <Course> courseRepo = _uow.RepositoryFor <Course>(); Course course = new Course(); course.CourseID = id; course.EntityState = DomainLayer.EntityState.Deleted; courseRepo.Remove(course);; return(true); }
public void RemoveDropDown8(params Dropdown8[] Dropdown8) { try { _dropdown8.Remove(Dropdown8); } catch (Exception ex) { throw ex; } }
public void RemoveRecipientFilters(params RecipientFilter[] RecipientFiltersRepository) { try { _recipientFiltersRepository.Remove(RecipientFiltersRepository); } catch (Exception ex) { throw ex; } }
public void RemoveDropDown4(params Dropdown4[] Dropdown4) { try { _dropdown4.Remove(Dropdown4); } catch (Exception ex) { throw ex; } }
public void RemoveProjectlevelTaskDependency(params ProjectlevelTaskDependency[] ProjectlevelTaskDependency) { try { _projectlevelTaskDependency.Remove(ProjectlevelTaskDependency); } catch (Exception ex) { throw ex; } }
public void RemoveCustomReport(params CustomReport[] CustomReport) { try { _customReport.Remove(CustomReport); } catch (Exception ex) { throw ex; } }
public void RemoveTaskMilestoneTargetDates(params TaskMilestoneTargetDate[] TaskMilestoneTargetDates) { try { _taskMilestoneTargetDates.Remove(TaskMilestoneTargetDates); } catch (Exception ex) { throw ex; } }
public void RemoveProjectleveltask(params Projectleveltask[] Projectleveltask) { try { _projectleveltask.Remove(Projectleveltask); } catch (Exception ex) { throw ex; } }
public void RemoveDropDown5(params Dropdown5[] Dropdown5) { try { _dropdown5.Remove(Dropdown5); } catch (Exception ex) { throw ex; } }
public void RemoveHideColumnSetting(params HideColumnSetting[] hideColumnSetting) { try { _hideColumnSetting.Remove(hideColumnSetting); } catch (Exception ex) { throw ex; } }
public void RemoveDropDown6(params Dropdown6[] Dropdown6) { try { _dropdown6.Remove(Dropdown6); } catch (Exception ex) { throw ex; } }
public void RemoveIndividualRecipients(params IndividualRecipient[] IndividualRecipientsRepository) { try { _individualRecipientssRepository.Remove(IndividualRecipientsRepository); } catch (Exception ex) { throw ex; } }
public void RemoveCustomReportFilter(params CustomReportFilterMaster[] CustomReportFilter) { try { _customReportFilter.Remove(CustomReportFilter); } catch (Exception ex) { throw ex; } }
public void RemoveNormsManageTable(params NormsManageTable[] NormsManageTable) { try { _NormsManageTable.Remove(NormsManageTable); } catch (Exception ex) { throw ex; } }
public void RemoveTaskDetails(params TaskDetail[] taskDetail) { try { _taskDetailsRepository.Remove(taskDetail); } catch (Exception ex) { throw ex; } }
public void RemoveProjectleveltasksStakeholder(params ProjectleveltasksStakeholder[] ProjectleveltasksStakeholder) { try { _projectleveltasksStakeholder.Remove(ProjectleveltasksStakeholder); } catch (Exception ex) { throw ex; } }
public void RemoveDropDown9(params Dropdown9[] Dropdown9) { try { _dropdown9.Remove(Dropdown9); } catch (Exception ex) { throw ex; } }
public void RemoveNormsManageTableCoulumn(params NormsManageTableColumn[] NormsManageTableColumn) { try { _NormsManageTableCoulumn.Remove(NormsManageTableColumn); } catch (Exception ex) { throw ex; } }
public void RemoveDropDown10(params Dropdown10[] Dropdown10) { try { _dropdown10.Remove(Dropdown10); } catch (Exception ex) { throw ex; } }
public void RemoveProjectProgressLevelTemplate(params UsedProgressLevelTemplateNPA[] usedprogressLevelTemplateNPA) { try { _usedprogressLevelTemplateNPA.Remove(usedprogressLevelTemplateNPA); } catch (Exception ex) { throw ex; } }
public void RemoveNorms(params MaterialNorm[] MaterialNorms) { try { _MaterialNorms.Remove(MaterialNorms); } catch (Exception ex) { throw ex; } }
public void RemoveDocumentFilters(params DocumentFilter[] documentFiltersRepository) { try { _documentFiltersRepository.Remove(documentFiltersRepository); } catch (Exception ex) { throw ex; } }
public void RemoveDropDown7(params Dropdown7[] Dropdown7) { try { _dropdown7.Remove(Dropdown7); } catch (Exception ex) { throw ex; } }
public void RemoveActivityLog(params ActivityLog[] activityLog) { try { _ActivityLog.Remove(activityLog); } catch (Exception ex) { ////bool false = BusinessLogicExceptionHandler.HandleException(ref ex); //throw new Exception("Record not deleted."); } }
public void RemoveEstimationTaskList(params EstimationTaskList[] EstimationTaskList) { try { _estimationTaskList.Remove(EstimationTaskList); } catch (Exception ex) { //bool false = BusinessLogicExceptionHandler.HandleException(ref ex); throw new Exception("Record not deleted."); } }
public void RemoveProfile(params CompanyProfile[] attachmentFile) { try { _profile.Remove(attachmentFile); } catch (Exception ex) { //bool false = BusinessLogicExceptionHandler.HandleException(ref ex); throw new Exception("Record not deleted."); } }
public void RemoveUploadDeliverableFile(params FileCheckerEmailDetail[] fileChecker) { try { _fileChecker.Remove(fileChecker); } catch (Exception ex) { //bool false = BusinessLogicExceptionHandler.HandleException(ref ex); throw new Exception("Record not deleted."); } }
public void RemoveExUsers(params ExUsers[] ExUsers) { try { _exUsers.Remove(ExUsers); } catch (Exception ex) { //bool false = BusinessLogicExceptionHandler.HandleException(ref ex); throw new Exception("Record not deleted."); } }