public bool DeletePersonById(int ID) { try { bool isSuccess; using (var repo = new PersonsRepository()) { isSuccess = repo.DeletedById(ID); } return(isSuccess); } catch (Exception ex) { LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true); throw new Exception("BusinessLogic:PersonsBusiness::DeletePerson::Error occured.", ex); } }